Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Alexander Graf | ab94e47 | 2016-05-20 23:28:22 +0200 | [diff] [blame] | 2 | /* |
Philipp Tomsich | e5a246f | 2017-10-10 16:21:13 +0200 | [diff] [blame] | 3 | * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH |
4 | * (C) Copyright 2016 Alexander Graf <agraf@suse.de> | ||||
Alexander Graf | ab94e47 | 2016-05-20 23:28:22 +0200 | [diff] [blame] | 5 | */ |
6 | |||||
Heinrich Schuchardt | f6782bb | 2025-03-02 15:21:19 +0100 | [diff] [blame] | 7 | #ifndef _ASM_SETJMP_H_ |
8 | #define _ASM_SETJMP_H_ 1 | ||||
Alexander Graf | ab94e47 | 2016-05-20 23:28:22 +0200 | [diff] [blame] | 9 | |
Heinrich Schuchardt | 735916f | 2025-03-02 15:21:18 +0100 | [diff] [blame] | 10 | #include <asm-generic/int-ll64.h> |
11 | |||||
Alexander Graf | ab94e47 | 2016-05-20 23:28:22 +0200 | [diff] [blame] | 12 | struct jmp_buf_data { |
Philipp Tomsich | e5a246f | 2017-10-10 16:21:13 +0200 | [diff] [blame] | 13 | #if defined(__aarch64__) |
14 | u64 regs[13]; | ||||
Alexander Graf | ab94e47 | 2016-05-20 23:28:22 +0200 | [diff] [blame] | 15 | #else |
Philipp Tomsich | e5a246f | 2017-10-10 16:21:13 +0200 | [diff] [blame] | 16 | u32 regs[10]; /* r4-r9, sl, fp, sp, lr */ |
Alexander Graf | ab94e47 | 2016-05-20 23:28:22 +0200 | [diff] [blame] | 17 | #endif |
Philipp Tomsich | e5a246f | 2017-10-10 16:21:13 +0200 | [diff] [blame] | 18 | }; |
Alexander Graf | ab94e47 | 2016-05-20 23:28:22 +0200 | [diff] [blame] | 19 | |
Heinrich Schuchardt | f6782bb | 2025-03-02 15:21:19 +0100 | [diff] [blame] | 20 | #endif /* _ASM_SETJMP_H_ */ |