diff options
| author | guo <[email protected]> | 2021-12-02 10:09:37 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-02 10:09:37 +0800 |
| commit | fda37d55f8363d97dfc31c8e86b014c04cda2c10 (patch) | |
| tree | 66742824f17fc0f221732fde4d1a15402b7a8554 /libcpu/aarch64/common/stack.c | |
| parent | 1d4594c6fcad494ef256c9bbd8aa7d64132a0995 (diff) | |
| parent | 1cf8370b1ba5eca639e4b976f1e878753ee41548 (diff) | |
Merge pull request #5319 from RT-Thread/master
【PSE分支】同步master到PSE分支
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 |
