setjmp.h 480 B

123456789101112131415161718192021222324
  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. #ifndef __setjmp_h
  9. #define __setjmp_h
  10. struct jmp_buf_data {
  11. unsigned int __ebx;
  12. unsigned int __esp;
  13. unsigned int __ebp;
  14. unsigned int __esi;
  15. unsigned int __edi;
  16. unsigned int __eip;
  17. };
  18. int setjmp(struct jmp_buf_data *jmp_buf);
  19. void longjmp(struct jmp_buf_data *jmp_buf, int val);
  20. #endif