Tom Rini | a0434ab | 2018-06-03 16:10:22 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Simon Glass | 5dccd15 | 2018-05-16 09:42:22 -0600 | [diff] [blame] | 2 | /* |
| 3 | * (C) 2018 Google, Inc |
| 4 | * Written by Simon Glass <sjg@chromium.org> |
| 5 | */ |
| 6 | |
Heinrich Schuchardt | f6782bb | 2025-03-02 15:21:19 +0100 | [diff] [blame] | 7 | #ifndef _ASM_SETJMP_H_ |
| 8 | #define _ASM_SETJMP_H_ |
Simon Glass | 5dccd15 | 2018-05-16 09:42:22 -0600 | [diff] [blame] | 9 | |
| 10 | struct jmp_buf_data { |
| 11 | /* |
| 12 | * We're not sure how long this should be: |
| 13 | * |
| 14 | * amd64: 200 bytes |
| 15 | * arm64: 392 bytes |
| 16 | * armhf: 392 bytes |
| 17 | * |
| 18 | * So allow space for all of those, plus some extra. |
| 19 | * We don't need to worry about 16-byte alignment, since this does not |
| 20 | * run on Windows. |
| 21 | */ |
Heinrich Schuchardt | 11ba132 | 2025-03-02 15:21:17 +0100 | [diff] [blame] | 22 | unsigned long data[128]; |
Simon Glass | 5dccd15 | 2018-05-16 09:42:22 -0600 | [diff] [blame] | 23 | }; |
| 24 | |
Heinrich Schuchardt | f6782bb | 2025-03-02 15:21:19 +0100 | [diff] [blame] | 25 | #endif /* _ASM_SETJMP_H_ */ |