diff options
author | dzwdz | 2021-07-24 21:32:03 +0200 |
---|---|---|
committer | dzwdz | 2021-07-24 21:32:03 +0200 |
commit | ef7ec09f68cf10e1f75630409c79ce573d979f1e (patch) | |
tree | d395fb4c0842a46b513da2f30f669f0bd4d99116 /src/kernel/proc.c | |
parent | 986ff1e44ef800f56a5f20afb18c1ffdaf140a23 (diff) |
fix some warnings
Diffstat (limited to 'src/kernel/proc.c')
-rw-r--r-- | src/kernel/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/proc.c b/src/kernel/proc.c index 0f2b91d..9c7e390 100644 --- a/src/kernel/proc.c +++ b/src/kernel/proc.c @@ -11,12 +11,12 @@ struct process *process_new() { // map the stack to the last page in memory pagedir_map(proc->pages, (void*)~PAGE_MASK, page_alloc(1), true, true); - proc->stack_top = proc->regs.esp = (void*) ~0xF; + proc->stack_top = proc->regs.esp = ~0xF; // map the kernel // yup, .text is writeable too. the plan is to not map the kernel // into user memory at all, but i'll implement that later. TODO - for (size_t p = 0x100000; p < &_bss_end; p += PAGE_SIZE) + for (size_t p = 0x100000; p < (size_t)&_bss_end; p += PAGE_SIZE) pagedir_map(proc->pages, (void*)p, (void*)p, false, true); // the kernel still has to load the executable code and set EIP |