xref: /plan9-contrib/sys/src/9k/k10/memory.c (revision 094d68186d4cdde21fdab9786d6c843a03693e4e)
1 /*
2  * Size memory and create the kernel page-tables
3  * on the fly while doing so.
4  * Called from main(), this code should only be run
5  * by the bootstrap processor.
6  */
7 #include "u.h"
8 #include "../port/lib.h"
9 #include "mem.h"
10 #include "dat.h"
11 #include "fns.h"
12 
13 void
meminit(void)14 meminit(void)
15 {
16 	extern void asmmeminit(void);
17 
18 	asmmeminit();
19 }
20 
21 void
umeminit(void)22 umeminit(void)
23 {
24 	extern void asmumeminit(void);
25 
26 	asmumeminit();
27 }
28