diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-10-01 15:00:22 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-10-29 07:36:33 -0600 |
commit | 95e7cafa8171397b5ef5d15ec4eac29ffa6fbe87 (patch) | |
tree | b81c5f7b9422244bd94b9064e178417419fdff9e /arch/x86/include | |
parent | fc872ee84cd5dd3a74bf51ce6519377b0de4940f (diff) | |
download | u-boot-95e7cafa8171397b5ef5d15ec4eac29ffa6fbe87.tar.gz u-boot-95e7cafa8171397b5ef5d15ec4eac29ffa6fbe87.tar.bz2 u-boot-95e7cafa8171397b5ef5d15ec4eac29ffa6fbe87.zip |
x86: provide typedef jmp_buf
The jmp_buf type is required by the C99 specification.
Defining it for x86 fixes building the longjmp unit test.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/setjmp.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/include/asm/setjmp.h b/arch/x86/include/asm/setjmp.h index 49c36c1cc8..15915d0dc6 100644 --- a/arch/x86/include/asm/setjmp.h +++ b/arch/x86/include/asm/setjmp.h @@ -34,7 +34,9 @@ struct jmp_buf_data { #endif -int setjmp(struct jmp_buf_data *jmp_buf); -void longjmp(struct jmp_buf_data *jmp_buf, int val); +typedef struct jmp_buf_data jmp_buf[1]; + +int setjmp(jmp_buf env); +void longjmp(jmp_buf env, int val); #endif |