diff options
Diffstat (limited to 'arch/arm/kernel/setup.c')
-rw-r--r-- | arch/arm/kernel/setup.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 7e7977ab994f..8fc2c8fcbdc6 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c | |||
@@ -461,8 +461,10 @@ static void __init setup_processor(void) | |||
461 | cpu_name, read_cpuid_id(), read_cpuid_id() & 15, | 461 | cpu_name, read_cpuid_id(), read_cpuid_id() & 15, |
462 | proc_arch[cpu_architecture()], cr_alignment); | 462 | proc_arch[cpu_architecture()], cr_alignment); |
463 | 463 | ||
464 | sprintf(init_utsname()->machine, "%s%c", list->arch_name, ENDIANNESS); | 464 | snprintf(init_utsname()->machine, __NEW_UTS_LEN + 1, "%s%c", |
465 | sprintf(elf_platform, "%s%c", list->elf_name, ENDIANNESS); | 465 | list->arch_name, ENDIANNESS); |
466 | snprintf(elf_platform, ELF_PLATFORM_SIZE, "%s%c", | ||
467 | list->elf_name, ENDIANNESS); | ||
466 | elf_hwcap = list->elf_hwcap; | 468 | elf_hwcap = list->elf_hwcap; |
467 | #ifndef CONFIG_ARM_THUMB | 469 | #ifndef CONFIG_ARM_THUMB |
468 | elf_hwcap &= ~HWCAP_THUMB; | 470 | elf_hwcap &= ~HWCAP_THUMB; |
@@ -893,8 +895,6 @@ void __init setup_arch(char **cmdline_p) | |||
893 | { | 895 | { |
894 | struct machine_desc *mdesc; | 896 | struct machine_desc *mdesc; |
895 | 897 | ||
896 | unwind_init(); | ||
897 | |||
898 | setup_processor(); | 898 | setup_processor(); |
899 | mdesc = setup_machine_fdt(__atags_pointer); | 899 | mdesc = setup_machine_fdt(__atags_pointer); |
900 | if (!mdesc) | 900 | if (!mdesc) |
@@ -902,6 +902,12 @@ void __init setup_arch(char **cmdline_p) | |||
902 | machine_desc = mdesc; | 902 | machine_desc = mdesc; |
903 | machine_name = mdesc->name; | 903 | machine_name = mdesc->name; |
904 | 904 | ||
905 | #ifdef CONFIG_ZONE_DMA | ||
906 | if (mdesc->dma_zone_size) { | ||
907 | extern unsigned long arm_dma_zone_size; | ||
908 | arm_dma_zone_size = mdesc->dma_zone_size; | ||
909 | } | ||
910 | #endif | ||
905 | if (mdesc->soft_reboot) | 911 | if (mdesc->soft_reboot) |
906 | reboot_setup("s"); | 912 | reboot_setup("s"); |
907 | 913 | ||
@@ -932,12 +938,6 @@ void __init setup_arch(char **cmdline_p) | |||
932 | 938 | ||
933 | tcm_init(); | 939 | tcm_init(); |
934 | 940 | ||
935 | #ifdef CONFIG_ZONE_DMA | ||
936 | if (mdesc->dma_zone_size) { | ||
937 | extern unsigned long arm_dma_zone_size; | ||
938 | arm_dma_zone_size = mdesc->dma_zone_size; | ||
939 | } | ||
940 | #endif | ||
941 | #ifdef CONFIG_MULTI_IRQ_HANDLER | 941 | #ifdef CONFIG_MULTI_IRQ_HANDLER |
942 | handle_arch_irq = mdesc->handle_irq; | 942 | handle_arch_irq = mdesc->handle_irq; |
943 | #endif | 943 | #endif |