diff options
| author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-06-25 09:52:59 +0100 | 
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-06-25 09:52:59 +0100 | 
| commit | d1e16c1a61d68692dba346f4a841315343b085f4 (patch) | |
| tree | 249ec07d1489769fe83b4ec507708455cc0c5138 /arch/h8300/kernel/setup.c | |
| parent | 1573ee81cb9ef24fa5acee6b7442e215e63ede2f (diff) | |
| parent | 6b16351acbd415e66ba16bf7d473ece1574cf0bc (diff) | |
| download | olio-linux-3.10-d1e16c1a61d68692dba346f4a841315343b085f4.tar.xz olio-linux-3.10-d1e16c1a61d68692dba346f4a841315343b085f4.zip  | |
Merge tag 'v3.5-rc4' into for-3.6
Linux 3.5-rc4 contains some bug fixes which overlap with new features.
Diffstat (limited to 'arch/h8300/kernel/setup.c')
| -rw-r--r-- | arch/h8300/kernel/setup.c | 23 | 
1 files changed, 10 insertions, 13 deletions
diff --git a/arch/h8300/kernel/setup.c b/arch/h8300/kernel/setup.c index 68d651081bd..d0b1607f271 100644 --- a/arch/h8300/kernel/setup.c +++ b/arch/h8300/kernel/setup.c @@ -35,6 +35,7 @@  #include <asm/setup.h>  #include <asm/irq.h>  #include <asm/pgtable.h> +#include <asm/sections.h>  #if defined(__H8300H__)  #define CPU "H8/300H" @@ -54,7 +55,6 @@ unsigned long memory_end;  char __initdata command_line[COMMAND_LINE_SIZE]; -extern int _stext, _etext, _sdata, _edata, _sbss, _ebss, _end;  extern int _ramstart, _ramend;  extern char _target_name[];  extern void h8300_gpio_init(void); @@ -119,9 +119,9 @@ void __init setup_arch(char **cmdline_p)  	    memory_end = CONFIG_BLKDEV_RESERVE_ADDRESS;   #endif -	init_mm.start_code = (unsigned long) &_stext; -	init_mm.end_code = (unsigned long) &_etext; -	init_mm.end_data = (unsigned long) &_edata; +	init_mm.start_code = (unsigned long) _stext; +	init_mm.end_code = (unsigned long) _etext; +	init_mm.end_data = (unsigned long) _edata;  	init_mm.brk = (unsigned long) 0;   #if (defined(CONFIG_H8300H_SIM) || defined(CONFIG_H8S_SIM)) && defined(CONFIG_GDB_MAGICPRINT) @@ -134,15 +134,12 @@ void __init setup_arch(char **cmdline_p)  	printk(KERN_INFO "H8/300 series support by Yoshinori Sato <ysato@users.sourceforge.jp>\n");  #ifdef DEBUG -	printk(KERN_DEBUG "KERNEL -> TEXT=0x%06x-0x%06x DATA=0x%06x-0x%06x " -		"BSS=0x%06x-0x%06x\n", (int) &_stext, (int) &_etext, -		(int) &_sdata, (int) &_edata, -		(int) &_sbss, (int) &_ebss); -	printk(KERN_DEBUG "KERNEL -> ROMFS=0x%06x-0x%06x MEM=0x%06x-0x%06x " -		"STACK=0x%06x-0x%06x\n", -	       (int) &_ebss, (int) memory_start, -		(int) memory_start, (int) memory_end, -		(int) memory_end, (int) &_ramend); +	printk(KERN_DEBUG "KERNEL -> TEXT=0x%p-0x%p DATA=0x%p-0x%p " +		"BSS=0x%p-0x%p\n", _stext, _etext, _sdata, _edata, __bss_start, +		__bss_stop); +	printk(KERN_DEBUG "KERNEL -> ROMFS=0x%p-0x%06lx MEM=0x%06lx-0x%06lx " +		"STACK=0x%06lx-0x%p\n", __bss_stop, memory_start, memory_start, +		memory_end, memory_end, &_ramend);  #endif  #ifdef CONFIG_DEFAULT_CMDLINE  |