diff options
author | dzwdz | 2022-08-30 11:01:28 +0200 |
---|---|---|
committer | dzwdz | 2022-08-30 11:01:28 +0200 |
commit | 7cccc1fb9951f91d91fe72114b39585e5b428384 (patch) | |
tree | b6d68254978c26ec341f047b3312a86935faebac /src/kernel/proc.c | |
parent | 69d7da4945448f4a6901b085e746e977359f465c (diff) |
set up the stack in user/bootstrap instead of the kernel
Diffstat (limited to 'src/kernel/proc.c')
-rw-r--r-- | src/kernel/proc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/kernel/proc.c b/src/kernel/proc.c index 7b8e659..71d1f44 100644 --- a/src/kernel/proc.c +++ b/src/kernel/proc.c @@ -29,11 +29,6 @@ struct process *process_seed(void *data, size_t datalen) { process_first->id = next_pid++; process_first->_handles = kzalloc(sizeof(struct handle) * HANDLE_MAX); - // map the stack to the last page in memory - // TODO move to user bootstrap - pagedir_map(process_first->pages, (userptr_t)~PAGE_MASK, page_zalloc(1), true, true); - process_first->regs.rsp = (userptr_t) ~0xF; - // map .shared extern char _shared_len; for (size_t p = 0; p < (size_t)&_shared_len; p += PAGE_SIZE) |