diff options
author | Tom Rini <trini@konsulko.com> | 2023-08-09 13:15:51 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-08-09 13:15:51 -0400 |
commit | 321d7b4d875a77552a969dd6ea5bbed2644fcb0c (patch) | |
tree | df15c6c203dcdd35fe15f7dae4ff024f82d5a618 /common/board_r.c | |
parent | 1e1437d9f8b5be362afdd0212dbae6c41f53f3d8 (diff) | |
parent | 06b51f77f5be60200a5f0037509c191b102e5e00 (diff) |
Merge branch '2023-08-09-misc-cleanups' into next
- Rework the arch linker scripts to be consistent for all, support
Kconfig fragments in the board directory and fix some Kconfig options
that were hex-type by default of 0 not 0x0.
Diffstat (limited to 'common/board_r.c')
-rw-r--r-- | common/board_r.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/board_r.c b/common/board_r.c index 4aaa894031..598155c775 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -126,9 +126,9 @@ static int initr_reloc_global_data(void) #ifdef __ARM__ monitor_flash_len = _end - __image_copy_start; #elif defined(CONFIG_RISCV) - monitor_flash_len = (ulong)&_end - (ulong)&_start; + monitor_flash_len = (ulong)_end - (ulong)_start; #elif !defined(CONFIG_SANDBOX) && !defined(CONFIG_NIOS2) - monitor_flash_len = (ulong)&__init_end - gd->relocaddr; + monitor_flash_len = (ulong)__init_end - gd->relocaddr; #endif #if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx) /* |