diff options
author | Simon Glass <sjg@chromium.org> | 2011-04-28 09:57:45 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-24 09:56:21 -0700 |
commit | 29897caccd59d51e110475edbaa483175f1f363f (patch) | |
tree | 85206a6f7c12ddcbc2dcd866947ab53dd2ecb18d /arch/arm/lib | |
parent | fdbcf5a4ff6491f24d17a17636ace3ea6a1b8726 (diff) |
Add option to disable code relocation
This permits disabling the code relation in U-Boot which is useful when
debugging with an ICE.
To use it define CONFIG_SYS_SKIP_ARM_RELOCATION in your board.
BUG=chromium-os:13875
TEST=build and boot U-Boot on seaboard with and without the option
Change-Id: I8242a80f491e975e16f9990cd17de8f3589c8991
Reviewed-on: http://gerrit.chromium.org/gerrit/193
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/lib')
-rw-r--r-- | arch/arm/lib/board.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c index 72aab21dd1..1a9fe7eb5b 100644 --- a/arch/arm/lib/board.c +++ b/arch/arm/lib/board.c @@ -359,6 +359,7 @@ void board_init_f (ulong bootflag) #endif /* CONFIG_FB_ADDR */ #endif /* CONFIG_LCD */ +#ifndef CONFIG_SYS_SKIP_ARM_RELOCATION /* * reserve memory for U-Boot code, data & bss * round down to next 4 kB limit @@ -367,6 +368,7 @@ void board_init_f (ulong bootflag) addr &= ~(4096 - 1); debug ("Reserving %ldk for U-Boot at: %08lx\n", gd->mon_len >> 10, addr); +#endif #ifndef CONFIG_PRELOADER /* @@ -418,6 +420,9 @@ void board_init_f (ulong bootflag) dram_init_banksize(); display_dram_config(); /* and display it */ +#ifdef CONFIG_SYS_SKIP_ARM_RELOCATION + addr = _TEXT_BASE; +#endif gd->relocaddr = addr; gd->start_addr_sp = addr_sp; gd->reloc_off = addr - _TEXT_BASE; |