aboutsummaryrefslogtreecommitdiff
path: root/pk/pk.c
diff options
context:
space:
mode:
Diffstat (limited to 'pk/pk.c')
-rw-r--r--pk/pk.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/pk/pk.c b/pk/pk.c
index 8adf88e..a257bf5 100644
--- a/pk/pk.c
+++ b/pk/pk.c
@@ -66,10 +66,7 @@ void run_loaded_program(struct mainvars* args)
} \
} while (0)
- if (current.elf64)
- STACK_INIT(uint64_t);
- else
- STACK_INIT(uint32_t);
+ STACK_INIT(uintptr_t);
if (current.t0) // start timer if so requested
current.t0 = rdcycle();
@@ -92,7 +89,7 @@ void run_loaded_program(struct mainvars* args)
}
trapframe_t tf;
- init_tf(&tf, current.entry, stack_top, current.elf64);
+ init_tf(&tf, current.entry, stack_top);
__clear_cache(0, 0);
write_csr(sscratch, kernel_stack_top);
start_user(&tf);