aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/kernel/setup.c')
-rw-r--r--arch/arm/kernel/setup.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index 3fe93f75b55a..bda0a218f4a5 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -849,25 +849,8 @@ static struct machine_desc * __init setup_machine_tags(unsigned int nr)
849 849
850 if (__atags_pointer) 850 if (__atags_pointer)
851 tags = phys_to_virt(__atags_pointer); 851 tags = phys_to_virt(__atags_pointer);
852 else if (mdesc->boot_params) { 852 else if (mdesc->atag_offset)
853#ifdef CONFIG_MMU 853 tags = (void *)(PAGE_OFFSET + mdesc->atag_offset);
854 /*
855 * We still are executing with a minimal MMU mapping created
856 * with the presumption that the machine default for this
857 * is located in the first MB of RAM. Anything else will
858 * fault and silently hang the kernel at this point.
859 */
860 if (mdesc->boot_params < PHYS_OFFSET ||
861 mdesc->boot_params >= PHYS_OFFSET + SZ_1M) {
862 printk(KERN_WARNING
863 "Default boot params at physical 0x%08lx out of reach\n",
864 mdesc->boot_params);
865 } else
866#endif
867 {
868 tags = phys_to_virt(mdesc->boot_params);
869 }
870 }
871 854
872#if defined(CONFIG_DEPRECATED_PARAM_STRUCT) 855#if defined(CONFIG_DEPRECATED_PARAM_STRUCT)
873 /* 856 /*