diff options
Diffstat (limited to 'arch/um/kernel/mem.c')
-rw-r--r-- | arch/um/kernel/mem.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/arch/um/kernel/mem.c b/arch/um/kernel/mem.c index 663011c2983f..d948babfc67a 100644 --- a/arch/um/kernel/mem.c +++ b/arch/um/kernel/mem.c | |||
@@ -22,17 +22,20 @@ | |||
22 | unsigned long *empty_zero_page = NULL; | 22 | unsigned long *empty_zero_page = NULL; |
23 | /* allocated in paging_init and unchanged thereafter */ | 23 | /* allocated in paging_init and unchanged thereafter */ |
24 | unsigned long *empty_bad_page = NULL; | 24 | unsigned long *empty_bad_page = NULL; |
25 | |||
26 | /* | ||
27 | * Initialized during boot, and readonly for initializing page tables | ||
28 | * afterwards | ||
29 | */ | ||
25 | pgd_t swapper_pg_dir[PTRS_PER_PGD]; | 30 | pgd_t swapper_pg_dir[PTRS_PER_PGD]; |
31 | |||
32 | /* Initialized at boot time, and readonly after that */ | ||
26 | unsigned long long highmem; | 33 | unsigned long long highmem; |
27 | int kmalloc_ok = 0; | 34 | int kmalloc_ok = 0; |
28 | 35 | ||
36 | /* Used during early boot */ | ||
29 | static unsigned long brk_end; | 37 | static unsigned long brk_end; |
30 | 38 | ||
31 | void unmap_physmem(void) | ||
32 | { | ||
33 | os_unmap_memory((void *) brk_end, uml_reserved - brk_end); | ||
34 | } | ||
35 | |||
36 | static void map_cb(void *unused) | 39 | static void map_cb(void *unused) |
37 | { | 40 | { |
38 | map_memory(brk_end, __pa(brk_end), uml_reserved - brk_end, 1, 1, 0); | 41 | map_memory(brk_end, __pa(brk_end), uml_reserved - brk_end, 1, 1, 0); |