diff options
author | Marvin Borner | 2019-12-01 15:47:35 +0100 |
---|---|---|
committer | Marvin Borner | 2019-12-01 15:47:35 +0100 |
commit | e9407b091b34d93014b89660601da62f13df37aa (patch) | |
tree | d60f14946e96d7e1bd72657522682032f0a99e84 /src/kernel/kernel.c | |
parent | 50f949d994c33ab23d63bdb9e8a438560ab0b4c4 (diff) |
Semi-working C-based userspace syscalls
Diffstat (limited to 'src/kernel/kernel.c')
-rw-r--r-- | src/kernel/kernel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c index eb78257..f54eed2 100644 --- a/src/kernel/kernel.c +++ b/src/kernel/kernel.c @@ -51,8 +51,8 @@ void kernel_main() info("Switching to user mode..."); syscalls_install(); tss_flush(); - uint32_t userspace = paging_alloc_pages(2); - paging_set_user(userspace, 2); + uint32_t userspace = paging_alloc_pages(10); + paging_set_user(userspace, 10); marfs_read_whole_file(4, (uint8_t *) (userspace + 4096)); jump_userspace(userspace + 4096); |