blob: f25975fe1d14fcc8d8268b68c1893d0cd4bb9ff8 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0 */
Simon Glassf8224032016-10-17 20:29:07 -06002/*
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
Simon Glassf8224032016-10-17 20:29:07 -06006 */
7
8#ifndef __setjmp_h
9#define __setjmp_h
10
11struct 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
20int setjmp(struct jmp_buf_data *jmp_buf);
21void longjmp(struct jmp_buf_data *jmp_buf, int val);
22
23#endif