From 374e6d244f184056d64fd02729a7badf02991e29 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 22 Aug 2021 12:17:43 +0200 Subject: fix almost all compiler warnings --- src/kernel/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/proc.c') 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 -- cgit v1.2.3