summaryrefslogtreecommitdiffstats
path: root/arch/kvx/include/asm/setjmp.h
blob: 3c23576e6e82a65f5572ba5d3f32ee5de71ccf6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* SPDX-License-Identifier: GPL-2.0-only */
/* SPDX-FileCopyrightText: 2021 Jules Maselbas <jmaselbas@kalray.eu>, Kalray Inc. */

#ifndef _ASM_KVX_SETJMP_H_
#define _ASM_KVX_SETJMP_H_

#include <linux/types.h>

typedef u64 jmp_buf[22];

int initjmp(jmp_buf jmp, void __attribute__((noreturn)) (*func)(void), void *stack_top);
int setjmp(jmp_buf jmp) __attribute__((returns_twice));
void longjmp(jmp_buf jmp, int ret) __attribute__((noreturn));

#endif /* _ASM_KVX_SETJMP_H_ */