public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6902db6
)
start.c: Set u_top before calling ptab_alloc()
author
Tormod Volden
<debian.tormod@gmail.com>
Thu, 13 Sep 2018 21:13:39 +0000
(23:13 +0200)
committer
Alan 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
patch
|
blob
|
history
diff --git
a/Kernel/start.c
b/Kernel/start.c
index
53dc0bf
..
2f85018
100644
(file)
--- 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);