diff options
Diffstat (limited to 'arch/x86/lib')
| -rw-r--r-- | arch/x86/lib/Makefile | 3 | ||||
| -rw-r--r-- | arch/x86/lib/board.c | 3 | ||||
| -rw-r--r-- | arch/x86/lib/init_helpers.c | 3 | ||||
| -rw-r--r-- | arch/x86/lib/relocate.c | 9 | 
4 files changed, 12 insertions, 6 deletions
| diff --git a/arch/x86/lib/Makefile b/arch/x86/lib/Makefile index 9b24dc5fd..ee8935480 100644 --- a/arch/x86/lib/Makefile +++ b/arch/x86/lib/Makefile @@ -25,7 +25,10 @@ include $(TOPDIR)/config.mk  LIB	= $(obj)lib$(ARCH).o +ifeq ($(CONFIG_SYS_GENERIC_BOARD),)  COBJS-y	+= board.o +endif +  COBJS-y	+= bootm.o  COBJS-y	+= cmd_boot.o  COBJS-y	+= gcc.o diff --git a/arch/x86/lib/board.c b/arch/x86/lib/board.c index 2441a66ae..452e5d826 100644 --- a/arch/x86/lib/board.c +++ b/arch/x86/lib/board.c @@ -38,6 +38,7 @@  #include <asm/u-boot-x86.h>  #include <asm/relocate.h>  #include <asm/processor.h> +#include <asm/sections.h>  #include <asm/init_helpers.h>  #include <asm/init_wrappers.h> @@ -219,7 +220,7 @@ static void do_init_loop(init_fnc_t **init_fnc_ptr)  void board_init_f(ulong boot_flags)  { -	gd->fdt_blob = gd->arch.new_fdt = NULL; +	gd->fdt_blob = gd->new_fdt = NULL;  	gd->flags = boot_flags;  	do_init_loop(init_sequence_f); diff --git a/arch/x86/lib/init_helpers.c b/arch/x86/lib/init_helpers.c index 414fdcc4c..af9dbc146 100644 --- a/arch/x86/lib/init_helpers.c +++ b/arch/x86/lib/init_helpers.c @@ -32,6 +32,7 @@  #include <spi.h>  #include <status_led.h>  #include <asm/processor.h> +#include <asm/sections.h>  #include <asm/u-boot-x86.h>  #include <linux/compiler.h> @@ -111,7 +112,7 @@ int calculate_relocation_address(void)  	 */  	if (gd->fdt_blob) {  		dest_addr -= fdt_size; -		gd->arch.new_fdt = (void *)dest_addr; +		gd->new_fdt = (void *)dest_addr;  		dest_addr &= ~15;  	}  #endif diff --git a/arch/x86/lib/relocate.c b/arch/x86/lib/relocate.c index 3e370f290..f178db9c8 100644 --- a/arch/x86/lib/relocate.c +++ b/arch/x86/lib/relocate.c @@ -36,6 +36,7 @@  #include <malloc.h>  #include <asm/u-boot-x86.h>  #include <asm/relocate.h> +#include <asm/sections.h>  #include <elf.h>  int copy_uboot_to_ram(void) @@ -49,15 +50,15 @@ int copy_uboot_to_ram(void)  int copy_fdt_to_ram(void)  { -	if (gd->arch.new_fdt) { +	if (gd->new_fdt) {  		ulong fdt_size;  		fdt_size = ALIGN(fdt_totalsize(gd->fdt_blob) + 0x1000, 32); -		memcpy(gd->arch.new_fdt, gd->fdt_blob, fdt_size); +		memcpy(gd->new_fdt, gd->fdt_blob, fdt_size);  		debug("Relocated fdt from %p to %p, size %lx\n", -		       gd->fdt_blob, gd->arch.new_fdt, fdt_size); -		gd->fdt_blob = gd->arch.new_fdt; +		       gd->fdt_blob, gd->new_fdt, fdt_size); +		gd->fdt_blob = gd->new_fdt;  	}  	return 0; |