start.c: Set u_top before calling ptab_alloc()
authorTormod Volden <debian.tormod@gmail.com>
Thu, 13 Sep 2018 21:13:39 +0000 (23:13 +0200)
committerAlan Cox <alan@linux.intel.com>
Fri, 14 Sep 2018 10:56:58 +0000 (11:56 +0100)
Because ptab_alloc calls pagemap_alloc() which in case of
CONFIG_BANK8K would need to know the u_top.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Kernel/start.c

index 53dc0bf..2f85018 100644 (file)
@@ -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);