diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-12-27 20:40:44 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-12-27 20:40:44 +0200 |
| commit | a12e50e5a7dae52ed8bd5a24cc6576371e20985b (patch) | |
| tree | 70ddf625029dbe1ca4d38ec4f1819fe5fe7e4291 /arch/riscv/kernel/main.c | |
| parent | d98ec57128628b81fcd32269a92742a037b7f713 (diff) | |
| download | kmi-a12e50e5a7dae52ed8bd5a24cc6576371e20985b.tar.gz kmi-a12e50e5a7dae52ed8bd5a24cc6576371e20985b.zip | |
Started work on syscalls
Diffstat (limited to 'arch/riscv/kernel/main.c')
| -rw-r--r-- | arch/riscv/kernel/main.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/riscv/kernel/main.c b/arch/riscv/kernel/main.c index 1964514..e519697 100644 --- a/arch/riscv/kernel/main.c +++ b/arch/riscv/kernel/main.c @@ -144,7 +144,7 @@ static struct pm_layout_t setup_pmem(void *fdt) /* mark init stack, at the moment always mapped to 2M */ mark_used(PM_STACK_BASE, MM_MPAGE); - /* mark kernel, at the moment it is always mapped to a 2M partition */ + /* mark kernel, at the moment with a 2M partition */ mark_used(PM_KERN, MM_MPAGE); /* mark fdt and initrd */ @@ -269,12 +269,6 @@ static void init_proc(void *fdt, struct vm_branch_t *b) __asm__("mv " QUOTE(reg) ", %0" :: "rK" (reg) : );\ } -static void update_stack() -{ - __va_reg(sp); - __va_reg(gp); -} - void __main main(void *fdt) { __va_reg(sp); |
