diff options
Diffstat (limited to 'arch/arm/kernel/setup.c')
-rw-r--r-- | arch/arm/kernel/setup.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index e514c76043b4..6136144f8f8d 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c | |||
@@ -820,25 +820,8 @@ static struct machine_desc * __init setup_machine_tags(unsigned int nr) | |||
820 | 820 | ||
821 | if (__atags_pointer) | 821 | if (__atags_pointer) |
822 | tags = phys_to_virt(__atags_pointer); | 822 | tags = phys_to_virt(__atags_pointer); |
823 | else if (mdesc->boot_params) { | 823 | else if (mdesc->atag_offset) |
824 | #ifdef CONFIG_MMU | 824 | tags = (void *)(PAGE_OFFSET + mdesc->atag_offset); |
825 | /* | ||
826 | * We still are executing with a minimal MMU mapping created | ||
827 | * with the presumption that the machine default for this | ||
828 | * is located in the first MB of RAM. Anything else will | ||
829 | * fault and silently hang the kernel at this point. | ||
830 | */ | ||
831 | if (mdesc->boot_params < PHYS_OFFSET || | ||
832 | mdesc->boot_params >= PHYS_OFFSET + SZ_1M) { | ||
833 | printk(KERN_WARNING | ||
834 | "Default boot params at physical 0x%08lx out of reach\n", | ||
835 | mdesc->boot_params); | ||
836 | } else | ||
837 | #endif | ||
838 | { | ||
839 | tags = phys_to_virt(mdesc->boot_params); | ||
840 | } | ||
841 | } | ||
842 | 825 | ||
843 | #if defined(CONFIG_DEPRECATED_PARAM_STRUCT) | 826 | #if defined(CONFIG_DEPRECATED_PARAM_STRUCT) |
844 | /* | 827 | /* |