blob: 1feaa892ad48ed73c1dae6ba9421f1359e669d85 [file] [log] [blame]
Simon Glassf8224032016-10-17 20:29:07 -06001/*
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
12struct 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
21int setjmp(struct jmp_buf_data *jmp_buf);
22void longjmp(struct jmp_buf_data *jmp_buf, int val);
23
24#endif