diff options
Diffstat (limited to 'arch/um/kernel/physmem.c')
-rw-r--r-- | arch/um/kernel/physmem.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/arch/um/kernel/physmem.c b/arch/um/kernel/physmem.c index e66432f42485..9757085a0220 100644 --- a/arch/um/kernel/physmem.c +++ b/arch/um/kernel/physmem.c | |||
@@ -55,16 +55,6 @@ int __init init_maps(unsigned long physmem, unsigned long iomem, | |||
55 | return 0; | 55 | return 0; |
56 | } | 56 | } |
57 | 57 | ||
58 | /* Changed during early boot */ | ||
59 | static unsigned long kmem_top = 0; | ||
60 | |||
61 | unsigned long get_kmem_end(void) | ||
62 | { | ||
63 | if (kmem_top == 0) | ||
64 | kmem_top = host_task_size - 1024 * 1024; | ||
65 | return kmem_top; | ||
66 | } | ||
67 | |||
68 | void map_memory(unsigned long virt, unsigned long phys, unsigned long len, | 58 | void map_memory(unsigned long virt, unsigned long phys, unsigned long len, |
69 | int r, int w, int x) | 59 | int r, int w, int x) |
70 | { | 60 | { |
@@ -174,10 +164,10 @@ __uml_setup("iomem=", parse_iomem, | |||
174 | * setup_iomem, both of which run during early boot. Afterwards, it's | 164 | * setup_iomem, both of which run during early boot. Afterwards, it's |
175 | * unchanged. | 165 | * unchanged. |
176 | */ | 166 | */ |
177 | struct iomem_region *iomem_regions = NULL; | 167 | struct iomem_region *iomem_regions; |
178 | 168 | ||
179 | /* Initialized in parse_iomem */ | 169 | /* Initialized in parse_iomem and unchanged thereafter */ |
180 | int iomem_size = 0; | 170 | int iomem_size; |
181 | 171 | ||
182 | unsigned long find_iomem(char *driver, unsigned long *len_out) | 172 | unsigned long find_iomem(char *driver, unsigned long *len_out) |
183 | { | 173 | { |