162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright © 2008 Michael Neuling IBM Corporation
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci#ifndef _ASM_POWERPC_SETJMP_H
662306a36Sopenharmony_ci#define _ASM_POWERPC_SETJMP_H
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#define JMP_BUF_LEN    23
962306a36Sopenharmony_ci
1062306a36Sopenharmony_citypedef long jmp_buf[JMP_BUF_LEN];
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ciextern int setjmp(jmp_buf env) __attribute__((returns_twice));
1362306a36Sopenharmony_ciextern void longjmp(jmp_buf env, int val) __attribute__((noreturn));
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci#endif /* _ASM_POWERPC_SETJMP_H */
16