From: Tormod Volden Date: Thu, 13 Sep 2018 21:13:39 +0000 (+0200) Subject: start.c: Set u_top before calling ptab_alloc() X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=879ebed816d41444514d52852986fff890be1bc3;p=FUZIX.git 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 --- 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);