diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-10-01 09:12:22 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-10-08 05:02:24 -0400 |
commit | 842eab40b6920819fff5caeefdb709f07d3f8e23 (patch) | |
tree | ec76af8f8615debd8c2250dbe76ba9358de9be37 /arch/arm | |
parent | c7b0aff44a0740eedd31b759fd08d9e25672fa76 (diff) |
ARM: vmlinux.lds: Refer to start of .data using _sdata rather than _data
Use _sdata as the start of the data section, rather than _data.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/kernel/head-common.S | 2 | ||||
-rw-r--r-- | arch/arm/kernel/setup.c | 2 | ||||
-rw-r--r-- | arch/arm/mm/init.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/kernel/head-common.S b/arch/arm/kernel/head-common.S index b9505aa267c0..58a3e632b6d5 100644 --- a/arch/arm/kernel/head-common.S +++ b/arch/arm/kernel/head-common.S | |||
@@ -20,7 +20,7 @@ | |||
20 | __switch_data: | 20 | __switch_data: |
21 | .long __mmap_switched | 21 | .long __mmap_switched |
22 | .long __data_loc @ r4 | 22 | .long __data_loc @ r4 |
23 | .long _data @ r5 | 23 | .long _sdata @ r5 |
24 | .long __bss_start @ r6 | 24 | .long __bss_start @ r6 |
25 | .long _end @ r7 | 25 | .long _end @ r7 |
26 | .long processor_id @ r4 | 26 | .long processor_id @ r4 |
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 5a82c39ca85e..f38917174b71 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c | |||
@@ -491,7 +491,7 @@ request_standard_resources(struct meminfo *mi, struct machine_desc *mdesc) | |||
491 | 491 | ||
492 | kernel_code.start = virt_to_phys(_text); | 492 | kernel_code.start = virt_to_phys(_text); |
493 | kernel_code.end = virt_to_phys(_etext - 1); | 493 | kernel_code.end = virt_to_phys(_etext - 1); |
494 | kernel_data.start = virt_to_phys(_data); | 494 | kernel_data.start = virt_to_phys(_sdata); |
495 | kernel_data.end = virt_to_phys(_end - 1); | 495 | kernel_data.end = virt_to_phys(_end - 1); |
496 | 496 | ||
497 | for (i = 0; i < mi->nr_banks; i++) { | 497 | for (i = 0; i < mi->nr_banks; i++) { |
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 7185b00650fe..36c4553ffcce 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c | |||
@@ -277,7 +277,7 @@ void __init arm_memblock_init(struct meminfo *mi, struct machine_desc *mdesc) | |||
277 | 277 | ||
278 | /* Register the kernel text, kernel data and initrd with memblock. */ | 278 | /* Register the kernel text, kernel data and initrd with memblock. */ |
279 | #ifdef CONFIG_XIP_KERNEL | 279 | #ifdef CONFIG_XIP_KERNEL |
280 | memblock_reserve(__pa(_data), _end - _data); | 280 | memblock_reserve(__pa(_sdata), _end - _sdata); |
281 | #else | 281 | #else |
282 | memblock_reserve(__pa(_stext), _end - _stext); | 282 | memblock_reserve(__pa(_stext), _end - _stext); |
283 | #endif | 283 | #endif |
@@ -545,7 +545,7 @@ void __init mem_init(void) | |||
545 | 545 | ||
546 | MLK_ROUNDUP(__init_begin, __init_end), | 546 | MLK_ROUNDUP(__init_begin, __init_end), |
547 | MLK_ROUNDUP(_text, _etext), | 547 | MLK_ROUNDUP(_text, _etext), |
548 | MLK_ROUNDUP(_data, _edata)); | 548 | MLK_ROUNDUP(_sdata, _edata)); |
549 | 549 | ||
550 | #undef MLK | 550 | #undef MLK |
551 | #undef MLM | 551 | #undef MLM |