diff options
Diffstat (limited to 'common/board_f.c')
| -rw-r--r-- | common/board_f.c | 32 | 
1 files changed, 12 insertions, 20 deletions
| diff --git a/common/board_f.c b/common/board_f.c index b5bebc9dc86..98c9c728ce7 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -142,17 +142,19 @@ static int init_baud_rate(void)  static int display_text_info(void)  {  #ifndef CONFIG_SANDBOX -	ulong bss_start, bss_end; +	ulong bss_start, bss_end, text_base;  	bss_start = (ulong)&__bss_start;  	bss_end = (ulong)&__bss_end; -	debug("U-Boot code: %08X -> %08lX  BSS: -> %08lX\n",  #ifdef CONFIG_SYS_TEXT_BASE -	      CONFIG_SYS_TEXT_BASE, bss_start, bss_end); +	text_base = CONFIG_SYS_TEXT_BASE;  #else -	      CONFIG_SYS_MONITOR_BASE, bss_start, bss_end); +	text_base = CONFIG_SYS_MONITOR_BASE;  #endif + +	debug("U-Boot code: %08lX -> %08lX  BSS: -> %08lX\n", +		text_base, bss_start, bss_end);  #endif  #ifdef CONFIG_MODEM_SUPPORT @@ -285,7 +287,7 @@ static int read_fdt_from_file(void)  	struct sandbox_state *state = state_get_current();  	const char *fname = state->fdt_fname;  	void *blob; -	ssize_t size; +	loff_t size;  	int err;  	int fd; @@ -298,10 +300,10 @@ static int read_fdt_from_file(void)  		return -EINVAL;  	} -	size = os_get_filesize(fname); -	if (size < 0) { +	err = os_get_filesize(fname, &size); +	if (err < 0) {  		printf("Failed to file FDT file '%s'\n", fname); -		return -ENOENT; +		return err;  	}  	fd = os_open(fname, OS_O_RDONLY);  	if (fd < 0) { @@ -812,22 +814,16 @@ static init_fnc_t init_sequence_f[] = {  	setup_mon_len,  	setup_fdt,  	trace_early_init, +	initf_malloc,  #if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)  	/* TODO: can this go into arch_cpu_init()? */  	probecpu,  #endif  	arch_cpu_init,		/* basic arch cpu dependent setup */ -#ifdef CONFIG_X86 -	cpu_init_f,		/* TODO(sjg@chromium.org): remove */ -# ifdef CONFIG_OF_CONTROL -	find_fdt,		/* TODO(sjg@chromium.org): remove */ -# endif -#endif  	mark_bootstage,  #ifdef CONFIG_OF_CONTROL  	fdtdec_check_fdt,  #endif -	initf_malloc,  	initf_dm,  #if defined(CONFIG_BOARD_EARLY_INIT_F)  	board_early_init_f, @@ -903,13 +899,9 @@ static init_fnc_t init_sequence_f[] = {  #if defined(CONFIG_HARD_SPI)  	init_func_spi,  #endif -#ifdef CONFIG_X86 -	dram_init_f,		/* configure available RAM banks */ -	calculate_relocation_address, -#endif  	announce_dram_init,  	/* TODO: unify all these dram functions? */ -#ifdef CONFIG_ARM +#if defined(CONFIG_ARM) || defined(CONFIG_X86)  	dram_init,		/* configure available RAM banks */  #endif  #if defined(CONFIG_MIPS) || defined(CONFIG_PPC) | 
