aboutsummaryrefslogtreecommitdiff
path: root/pk/pk.c
diff options
context:
space:
mode:
Diffstat (limited to 'pk/pk.c')
-rw-r--r--pk/pk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pk/pk.c b/pk/pk.c
index e83c29b..4f16abc 100644
--- a/pk/pk.c
+++ b/pk/pk.c
@@ -189,6 +189,8 @@ rest_of_boot_loader:\n\
void rest_of_boot_loader_2(uintptr_t kstack_top)
{
+ file_init();
+
static arg_buf args; // avoid large stack allocation
size_t argc = parse_args(&args);
if (!argc)
@@ -205,8 +207,6 @@ void rest_of_boot_loader_2(uintptr_t kstack_top)
void boot_loader(uintptr_t dtb)
{
- file_init();
-
uintptr_t kernel_stack_top = pk_vm_init();
extern char trap_entry;