summaryrefslogtreecommitdiff
path: root/src/kernel/proc.c
diff options
context:
space:
mode:
authordzwdz2021-08-22 12:17:43 +0200
committerdzwdz2021-08-22 12:17:43 +0200
commit374e6d244f184056d64fd02729a7badf02991e29 (patch)
tree129dcc05757d3354bac0b217ca557eee8ff8c1b4 /src/kernel/proc.c
parent0128c5dc7ff2da36114b8f55187234d9b55db353 (diff)
fix almost all compiler warnings
Diffstat (limited to 'src/kernel/proc.c')
-rw-r--r--src/kernel/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/proc.c b/src/kernel/proc.c
index eb36caf..bdd92ba 100644
--- a/src/kernel/proc.c
+++ b/src/kernel/proc.c
@@ -21,7 +21,7 @@ struct process *process_seed() {
// 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 = ~0xF;
+ proc->stack_top = (void*) (proc->regs.esp = ~0xF);
// map the kernel
// yup, .text is writeable too. the plan is to not map the kernel