GNU Linux-libre 4.19.245-gnu1
[releases.git] / arch / powerpc / include / asm / setjmp.h
1 /*
2  * Copyright © 2008 Michael Neuling IBM Corporation
3  *
4  *      This program is free software; you can redistribute it and/or
5  *      modify it under the terms of the GNU General Public License
6  *      as published by the Free Software Foundation; either version
7  *      2 of the License, or (at your option) any later version.
8  *
9  */
10 #ifndef _ASM_POWERPC_SETJMP_H
11 #define _ASM_POWERPC_SETJMP_H
12
13 #define JMP_BUF_LEN    23
14
15 typedef long jmp_buf[JMP_BUF_LEN];
16
17 extern int setjmp(jmp_buf env) __attribute__((returns_twice));
18 extern void longjmp(jmp_buf env, int val) __attribute__((noreturn));
19
20 #endif /* _ASM_POWERPC_SETJMP_H */