start: the top of user memory we fake up depends on program base
authorAlan Cox <alan@linux.intel.com>
Fri, 16 Jan 2015 23:00:00 +0000 (23:00 +0000)
committerAlan Cox <alan@linux.intel.com>
Fri, 16 Jan 2015 23:00:00 +0000 (23:00 +0000)
Kernel/start.c

index 577d1b2..ec9d476 100644 (file)
@@ -61,7 +61,7 @@ void create_init(void)
 
        init_process = ptab_alloc();
        udata.u_ptab = init_process;
-       udata.u_top = 4096;     /* Plenty for the boot */
+       udata.u_top = PROGLOAD + 4096;  /* Plenty for the boot */
        map_init();
        newproc(init_process);