|
29 | 29 | #include <asm/cputype.h> |
30 | 30 | #include <asm/elf.h> |
31 | 31 | #include <asm/procinfo.h> |
| 32 | +#include <asm/sections.h> |
32 | 33 | #include <asm/setup.h> |
33 | 34 | #include <asm/mach-types.h> |
34 | 35 | #include <asm/cacheflush.h> |
@@ -61,7 +62,6 @@ __setup("fpe=", fpe_setup); |
61 | 62 |
|
62 | 63 | extern void paging_init(struct machine_desc *desc); |
63 | 64 | extern void reboot_setup(char *str); |
64 | | -extern void _text, _etext, __data_start, _edata, _end; |
65 | 65 |
|
66 | 66 | unsigned int processor_id; |
67 | 67 | EXPORT_SYMBOL(processor_id); |
@@ -484,10 +484,10 @@ request_standard_resources(struct meminfo *mi, struct machine_desc *mdesc) |
484 | 484 | struct resource *res; |
485 | 485 | int i; |
486 | 486 |
|
487 | | - kernel_code.start = virt_to_phys(&_text); |
488 | | - kernel_code.end = virt_to_phys(&_etext - 1); |
489 | | - kernel_data.start = virt_to_phys(&__data_start); |
490 | | - kernel_data.end = virt_to_phys(&_end - 1); |
| 487 | + kernel_code.start = virt_to_phys(_text); |
| 488 | + kernel_code.end = virt_to_phys(_etext - 1); |
| 489 | + kernel_data.start = virt_to_phys(_data); |
| 490 | + kernel_data.end = virt_to_phys(_end - 1); |
491 | 491 |
|
492 | 492 | for (i = 0; i < mi->nr_banks; i++) { |
493 | 493 | if (mi->bank[i].size == 0) |
@@ -715,10 +715,10 @@ void __init setup_arch(char **cmdline_p) |
715 | 715 | parse_tags(tags); |
716 | 716 | } |
717 | 717 |
|
718 | | - init_mm.start_code = (unsigned long) &_text; |
719 | | - init_mm.end_code = (unsigned long) &_etext; |
720 | | - init_mm.end_data = (unsigned long) &_edata; |
721 | | - init_mm.brk = (unsigned long) &_end; |
| 718 | + init_mm.start_code = (unsigned long) _text; |
| 719 | + init_mm.end_code = (unsigned long) _etext; |
| 720 | + init_mm.end_data = (unsigned long) _edata; |
| 721 | + init_mm.brk = (unsigned long) _end; |
722 | 722 |
|
723 | 723 | memcpy(boot_command_line, from, COMMAND_LINE_SIZE); |
724 | 724 | boot_command_line[COMMAND_LINE_SIZE-1] = '\0'; |
|
0 commit comments