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