18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright © 2008 Michael Neuling IBM Corporation
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci#ifndef _ASM_POWERPC_SETJMP_H
68c2ecf20Sopenharmony_ci#define _ASM_POWERPC_SETJMP_H
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#define JMP_BUF_LEN    23
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_citypedef long jmp_buf[JMP_BUF_LEN];
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciextern int setjmp(jmp_buf env) __attribute__((returns_twice));
138c2ecf20Sopenharmony_ciextern void longjmp(jmp_buf env, int val) __attribute__((noreturn));
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#endif /* _ASM_POWERPC_SETJMP_H */
16