12874c5fdSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 2b8b572e1SStephen Rothwell /* 3b8b572e1SStephen Rothwell * Copyright © 2008 Michael Neuling IBM Corporation 4b8b572e1SStephen Rothwell */ 5b8b572e1SStephen Rothwell #ifndef _ASM_POWERPC_SETJMP_H 6b8b572e1SStephen Rothwell #define _ASM_POWERPC_SETJMP_H 7b8b572e1SStephen Rothwell 8b8b572e1SStephen Rothwell #define JMP_BUF_LEN 23 9b8b572e1SStephen Rothwell 10c17eb4dcSClement Courbet typedef long jmp_buf[JMP_BUF_LEN]; 11c17eb4dcSClement Courbet 12c17eb4dcSClement Courbet extern int setjmp(jmp_buf env) __attribute__((returns_twice)); 13c17eb4dcSClement Courbet extern void longjmp(jmp_buf env, int val) __attribute__((noreturn)); 14b8b572e1SStephen Rothwell 15b8b572e1SStephen Rothwell #endif /* _ASM_POWERPC_SETJMP_H */ 16