diff options
Diffstat (limited to 'arch/riscv64/asm/asm-offsets.c')
| -rw-r--r-- | arch/riscv64/asm/asm-offsets.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/riscv64/asm/asm-offsets.c b/arch/riscv64/asm/asm-offsets.c index 8852d8f..3619765 100644 --- a/arch/riscv64/asm/asm-offsets.c +++ b/arch/riscv64/asm/asm-offsets.c @@ -8,6 +8,7 @@ */ #include <apos/utils.h> +#include <apos/uapi.h> #include "../kernel/regs.h" /** @@ -74,4 +75,12 @@ void asm_offsets() OFFSETOF(t5, struct riscv_regs); OFFSETOF(t6, struct riscv_regs); SIZEOF(registers, struct riscv_regs); + + OFFSETOF(s, struct sys_ret); + OFFSETOF(ar0, struct sys_ret); + OFFSETOF(ar1, struct sys_ret); + OFFSETOF(ar2, struct sys_ret); + OFFSETOF(ar3, struct sys_ret); + OFFSETOF(ar4, struct sys_ret); + SIZEOF(sys_ret, struct sys_ret); } |
