1 /* 2 * Written by H. Peter Anvin <hpa@zytor.com> 3 * Brought in from Linux v4.4 and modified for U-Boot 4 * From Linux arch/um/sys-i386/setjmp.S 5 * 6 * SPDX-License-Identifier: GPL-2.0 7 */ 8 9 #ifndef __setjmp_h 10 #define __setjmp_h 11 12 struct jmp_buf_data { 13 unsigned int __ebx; 14 unsigned int __esp; 15 unsigned int __ebp; 16 unsigned int __esi; 17 unsigned int __edi; 18 unsigned int __eip; 19 }; 20 21 int setjmp(struct jmp_buf_data *jmp_buf); 22 void longjmp(struct jmp_buf_data *jmp_buf, int val); 23 24 #endif 25