From 879ebed816d41444514d52852986fff890be1bc3 Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Thu, 13 Sep 2018 23:13:39 +0200 Subject: [PATCH] start.c: Set u_top before calling ptab_alloc() Because ptab_alloc calls pagemap_alloc() which in case of CONFIG_BANK8K would need to know the u_top. Signed-off-by: Tormod Volden --- Kernel/start.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/start.c b/Kernel/start.c index 53dc0bf9..2f850184 100644 --- a/Kernel/start.c +++ b/Kernel/start.c @@ -83,9 +83,9 @@ void create_init(void) { uint8_t *j; + udata.u_top = PROGLOAD + 4096; /* Plenty for the boot */ init_process = ptab_alloc(); udata.u_ptab = init_process; - udata.u_top = PROGLOAD + 4096; /* Plenty for the boot */ init_process->p_top = udata.u_top; map_init(); newproc(init_process); -- 2.34.1