diff options
| author | GuEe-GUI <[email protected]> | 2021-11-30 10:32:23 +0800 |
|---|---|---|
| committer | GuEe-GUI <[email protected]> | 2021-11-30 11:14:17 +0800 |
| commit | efbdbc2636abf25d0836d58a666b91d61b99bf80 (patch) | |
| tree | 3e65b5835fcb827802a7ff5d35ddf376231b4014 /libcpu/aarch64/common/stack.c | |
| parent | 740cd9dfb013a26cb5a9106a717deedd4478eff5 (diff) | |
fixup .bss size define in link.lds and set spsel=1 in aarch64
Diffstat (limited to 'libcpu/aarch64/common/stack.c')
| -rw-r--r-- | libcpu/aarch64/common/stack.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libcpu/aarch64/common/stack.c b/libcpu/aarch64/common/stack.c index 0fe00d8674..d93706fcb9 100644 --- a/libcpu/aarch64/common/stack.c +++ b/libcpu/aarch64/common/stack.c @@ -7,15 +7,16 @@ * Date Author Notes * 2011-09-23 Bernard the first version * 2011-10-05 Bernard add thumb mode + * 2021-11-04 GuEe-GUI set sp with SP_ELx */ #include <rtthread.h> #include <board.h> #include <armv8.h> -#define INITIAL_SPSR_EL3 (PSTATE_EL3 | SP_EL0) -#define INITIAL_SPSR_EL2 (PSTATE_EL2 | SP_EL0) -#define INITIAL_SPSR_EL1 (PSTATE_EL1 | SP_EL0) +#define INITIAL_SPSR_EL3 (PSTATE_EL3 | SP_ELx) +#define INITIAL_SPSR_EL2 (PSTATE_EL2 | SP_ELx) +#define INITIAL_SPSR_EL1 (PSTATE_EL1 | SP_ELx) /** * This function will initialize thread stack |
