mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
x86: Make calculate_relocation_address an overridable function
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>
This commit is contained in:
parent
842d33874f
commit
d65297b64d
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue