Skip to content
Snippets Groups Projects
Commit d65297b6 authored by Gabe Black's avatar Gabe Black Committed by Simon Glass
Browse files

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: default avatarGabe Black <gabeblack@chromium.org>

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 842d3387
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <status_led.h> #include <status_led.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/u-boot-x86.h> #include <asm/u-boot-x86.h>
#include <linux/compiler.h>
#include <asm/init_helpers.h> #include <asm/init_helpers.h>
...@@ -72,7 +73,7 @@ int init_baudrate_f(void) ...@@ -72,7 +73,7 @@ int init_baudrate_f(void)
return 0; return 0;
} }
int calculate_relocation_address(void) __weak int calculate_relocation_address(void)
{ {
ulong text_start = (ulong)&__text_start; ulong text_start = (ulong)&__text_start;
ulong bss_end = (ulong)&__bss_end; ulong bss_end = (ulong)&__bss_end;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment