diff options
| author | Bernard Xiong <[email protected]> | 2021-09-11 11:07:51 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2021-09-11 11:07:51 +0800 |
| commit | 8da9f78d7274f462852096ca2cae3d6e284fd51f (patch) | |
| tree | 8670379786c53eda39610e0e3b03d5972bce0d10 /libcpu | |
| parent | 45440d2456e62bf223ff6df0bd8d9f92894f45b6 (diff) | |
[libc] remove rtlibc
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 * |
