diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-07-03 13:49:45 -0400 | 
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-07-03 13:49:45 -0400 | 
| commit | 026477c1141b67e98e3bd8bdedb7d4b88a3ecd09 (patch) | |
| tree | 2624a44924c625c367f3cebf937853b9da2de282 /arch/arm/kernel/setup.c | |
| parent | 9f2fa466383ce100b90fe52cb4489d7a26bf72a9 (diff) | |
| parent | 29454dde27d8e340bb1987bad9aa504af7081eba (diff) | |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Diffstat (limited to 'arch/arm/kernel/setup.c')
| -rw-r--r-- | arch/arm/kernel/setup.c | 47 | 
1 files changed, 38 insertions, 9 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 093ccba0503c..7d6a516c0b9f 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c  | |||
| @@ -7,7 +7,6 @@ | |||
| 7 | * it under the terms of the GNU General Public License version 2 as | 7 | * it under the terms of the GNU General Public License version 2 as | 
| 8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. | 
| 9 | */ | 9 | */ | 
| 10 | #include <linux/config.h> | ||
| 11 | #include <linux/module.h> | 10 | #include <linux/module.h> | 
| 12 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> | 
| 13 | #include <linux/stddef.h> | 12 | #include <linux/stddef.h> | 
| @@ -119,9 +118,24 @@ DEFINE_PER_CPU(struct cpuinfo_arm, cpu_data); | |||
| 119 | * Standard memory resources | 118 | * Standard memory resources | 
| 120 | */ | 119 | */ | 
| 121 | static struct resource mem_res[] = { | 120 | static struct resource mem_res[] = { | 
| 122 | { "Video RAM", 0, 0, IORESOURCE_MEM }, | 121 | { | 
| 123 | { "Kernel text", 0, 0, IORESOURCE_MEM }, | 122 | .name = "Video RAM", | 
| 124 | { "Kernel data", 0, 0, IORESOURCE_MEM } | 123 | .start = 0, | 
| 124 | .end = 0, | ||
| 125 | .flags = IORESOURCE_MEM | ||
| 126 | }, | ||
| 127 | { | ||
| 128 | .name = "Kernel text", | ||
| 129 | .start = 0, | ||
| 130 | .end = 0, | ||
| 131 | .flags = IORESOURCE_MEM | ||
| 132 | }, | ||
| 133 | { | ||
| 134 | .name = "Kernel data", | ||
| 135 | .start = 0, | ||
| 136 | .end = 0, | ||
| 137 | .flags = IORESOURCE_MEM | ||
| 138 | } | ||
| 125 | }; | 139 | }; | 
| 126 | 140 | ||
| 127 | #define video_ram mem_res[0] | 141 | #define video_ram mem_res[0] | 
| @@ -129,9 +143,24 @@ static struct resource mem_res[] = { | |||
| 129 | #define kernel_data mem_res[2] | 143 | #define kernel_data mem_res[2] | 
| 130 | 144 | ||
| 131 | static struct resource io_res[] = { | 145 | static struct resource io_res[] = { | 
| 132 | { "reserved", 0x3bc, 0x3be, IORESOURCE_IO | IORESOURCE_BUSY }, | 146 | { | 
| 133 | { "reserved", 0x378, 0x37f, IORESOURCE_IO | IORESOURCE_BUSY }, | 147 | .name = "reserved", | 
| 134 | { "reserved", 0x278, 0x27f, IORESOURCE_IO | IORESOURCE_BUSY } | 148 | .start = 0x3bc, | 
| 149 | .end = 0x3be, | ||
| 150 | .flags = IORESOURCE_IO | IORESOURCE_BUSY | ||
| 151 | }, | ||
| 152 | { | ||
| 153 | .name = "reserved", | ||
| 154 | .start = 0x378, | ||
| 155 | .end = 0x37f, | ||
| 156 | .flags = IORESOURCE_IO | IORESOURCE_BUSY | ||
| 157 | }, | ||
| 158 | { | ||
| 159 | .name = "reserved", | ||
| 160 | .start = 0x278, | ||
| 161 | .end = 0x27f, | ||
| 162 | .flags = IORESOURCE_IO | IORESOURCE_BUSY | ||
| 163 | } | ||
| 135 | }; | 164 | }; | 
| 136 | 165 | ||
| 137 | #define lp0 io_res[0] | 166 | #define lp0 io_res[0] | 
| @@ -315,9 +344,9 @@ static void __init setup_processor(void) | |||
| 315 | cpu_cache = *list->cache; | 344 | cpu_cache = *list->cache; | 
| 316 | #endif | 345 | #endif | 
| 317 | 346 | ||
| 318 | printk("CPU: %s [%08x] revision %d (ARMv%s)\n", | 347 | printk("CPU: %s [%08x] revision %d (ARMv%s), cr=%08x\n", | 
| 319 | cpu_name, processor_id, (int)processor_id & 15, | 348 | cpu_name, processor_id, (int)processor_id & 15, | 
| 320 | proc_arch[cpu_architecture()]); | 349 | proc_arch[cpu_architecture()], cr_alignment); | 
| 321 | 350 | ||
| 322 | sprintf(system_utsname.machine, "%s%c", list->arch_name, ENDIANNESS); | 351 | sprintf(system_utsname.machine, "%s%c", list->arch_name, ENDIANNESS); | 
| 323 | sprintf(elf_platform, "%s%c", list->elf_name, ENDIANNESS); | 352 | sprintf(elf_platform, "%s%c", list->elf_name, ENDIANNESS); | 
