diff options
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/kernel/mem.c | 10 | ||||
-rw-r--r-- | arch/um/kernel/physmem.c | 17 |
2 files changed, 17 insertions, 10 deletions
diff --git a/arch/um/kernel/mem.c b/arch/um/kernel/mem.c index c95855ba6ab5..fb11992f0b8a 100644 --- a/arch/um/kernel/mem.c +++ b/arch/um/kernel/mem.c | |||
@@ -367,16 +367,6 @@ struct page *pte_alloc_one(struct mm_struct *mm, unsigned long address) | |||
367 | return pte; | 367 | return pte; |
368 | } | 368 | } |
369 | 369 | ||
370 | struct iomem_region *iomem_regions = NULL; | ||
371 | int iomem_size = 0; | ||
372 | |||
373 | extern int parse_iomem(char *str, int *add) __init; | ||
374 | |||
375 | __uml_setup("iomem=", parse_iomem, | ||
376 | "iomem=<name>,<file>\n" | ||
377 | " Configure <file> as an IO memory region named <name>.\n\n" | ||
378 | ); | ||
379 | |||
380 | /* | 370 | /* |
381 | * Overrides for Emacs so that we follow Linus's tabbing style. | 371 | * Overrides for Emacs so that we follow Linus's tabbing style. |
382 | * Emacs will notice this stuff at the end of the file and automatically | 372 | * Emacs will notice this stuff at the end of the file and automatically |
diff --git a/arch/um/kernel/physmem.c b/arch/um/kernel/physmem.c index abafa64b8727..22d3cf359669 100644 --- a/arch/um/kernel/physmem.c +++ b/arch/um/kernel/physmem.c | |||
@@ -398,6 +398,23 @@ __uml_setup("mem=", uml_mem_setup, | |||
398 | " Example: mem=64M\n\n" | 398 | " Example: mem=64M\n\n" |
399 | ); | 399 | ); |
400 | 400 | ||
401 | extern int __init parse_iomem(char *str, int *add); | ||
402 | |||
403 | __uml_setup("iomem=", parse_iomem, | ||
404 | "iomem=<name>,<file>\n" | ||
405 | " Configure <file> as an IO memory region named <name>.\n\n" | ||
406 | ); | ||
407 | |||
408 | /* | ||
409 | * This list is constructed in parse_iomem and addresses filled in in | ||
410 | * setup_iomem, both of which run during early boot. Afterwards, it's | ||
411 | * unchanged. | ||
412 | */ | ||
413 | struct iomem_region *iomem_regions = NULL; | ||
414 | |||
415 | /* Initialized in parse_iomem */ | ||
416 | int iomem_size = 0; | ||
417 | |||
401 | unsigned long find_iomem(char *driver, unsigned long *len_out) | 418 | unsigned long find_iomem(char *driver, unsigned long *len_out) |
402 | { | 419 | { |
403 | struct iomem_region *region = iomem_regions; | 420 | struct iomem_region *region = iomem_regions; |