diff options
author | Tom Rini <trini@konsulko.com> | 2025-05-26 16:07:19 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-05-26 16:07:19 -0600 |
commit | 39b815d02d7ce6af32bcf023d20243c404b75a84 (patch) | |
tree | 68cd13fa83e90f69bf8c989fbcde768b676eb6d7 /common/init/board_init.c | |
parent | bab54f5942c428be698216224fd10b91d974d4da (diff) | |
parent | 2ca1398a5ece8d33d8feb6b410e6e38588b5d2bc (diff) |
Merge tag 'v2025.07-rc3' into next
Prepare v2025.07-rc3
Diffstat (limited to 'common/init/board_init.c')
-rw-r--r-- | common/init/board_init.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/common/init/board_init.c b/common/init/board_init.c index a06ec1caa2c..2a6f39f51ad 100644 --- a/common/init/board_init.c +++ b/common/init/board_init.c @@ -13,8 +13,11 @@ DECLARE_GLOBAL_DATA_PTR; -/* Unfortunately x86 or ARM can't compile this code as gd cannot be assigned */ -#if !defined(CONFIG_X86) && !defined(CONFIG_ARM) +/* + * Unfortunately x86, ARM and RISC-V can't compile this code as gd is defined + * as macro and cannot be assigned. + */ +#if !defined(CONFIG_X86) && !defined(CONFIG_ARM) && !defined(CONFIG_RISCV) __weak void arch_setup_gd(struct global_data *gd_ptr) { gd = gd_ptr; |