]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
x86: Make calculate_relocation_address an overridable function
authorGabe Black <gabeblack@chromium.org>
Sat, 3 Nov 2012 11:41:26 +0000 (11:41 +0000)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Dec 2012 22:30:41 +0000 (14:30 -0800)
Different systems may have different mechanisms for picking a suitable place
to relocate U-Boot to.

Signed-off-by: Gabe Black <gabeblack@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/lib/init_helpers.c

index 9fd87dfd2e0ecac9807417affce5879298faed6c..3a62b2ea06c1d94086449a41eacba3a8cede294a 100644 (file)
@@ -32,6 +32,7 @@
 #include <status_led.h>
 #include <asm/processor.h>
 #include <asm/u-boot-x86.h>
+#include <linux/compiler.h>
 
 #include <asm/init_helpers.h>
 
@@ -72,7 +73,7 @@ int init_baudrate_f(void)
        return 0;
 }
 
-int calculate_relocation_address(void)
+__weak int calculate_relocation_address(void)
 {
        ulong text_start = (ulong)&__text_start;
        ulong bss_end = (ulong)&__bss_end;