summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/include/asm/setjmp.h
blob: a300758c3d6ce96ca556138967d4190a29f573ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: GPL-2.0 */

#ifndef __SETJMP_H_
#define __SETJMP_H_

struct jmp_buf_data {
	unsigned char opaque[512] __aligned(16);
};

typedef struct jmp_buf_data jmp_buf[1];

int setjmp(jmp_buf jmp) __attribute__((returns_twice));
void longjmp(jmp_buf jmp, int ret) __attribute__((noreturn));

int initjmp(jmp_buf jmp, void __attribute__((noreturn)) (*func)(void), void *stack_top);

#endif