diff options
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/mips/common/ptrace.h | 2 | ||||
| -rw-r--r-- | libcpu/risc-v/virt64/cpuport.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/mips/common/ptrace.h b/libcpu/mips/common/ptrace.h index 8b82cca5d6..da800e05dc 100644 --- a/libcpu/mips/common/ptrace.h +++ b/libcpu/mips/common/ptrace.h @@ -63,7 +63,7 @@ struct pt_regs { * so it should be a part of pt_regs */ struct mips_fpu_struct fpu; #endif -} __aligned(8); +} __attribute__((aligned(8))); #endif /* Note: For call stack o32 ABI has 0x8 shadowsoace Here */ diff --git a/libcpu/risc-v/virt64/cpuport.c b/libcpu/risc-v/virt64/cpuport.c index 33cab19488..9b0c2cce6b 100644 --- a/libcpu/risc-v/virt64/cpuport.c +++ b/libcpu/risc-v/virt64/cpuport.c @@ -9,13 +9,13 @@ * 2021-02-11 lizhirui add gp support */ +#include <stddef.h> #include <rthw.h> #include <rtthread.h> #include "cpuport.h" #include "stack.h" - /** * @brief from thread used interrupt context switch * |
