diff options
| author | Rick Chen <[email protected]> | 2019-04-30 13:49:33 +0800 |
|---|---|---|
| committer | Andes <[email protected]> | 2019-05-09 16:46:46 +0800 |
| commit | bdce38965e79143ed58bf1c6d39c650ff3dfefd1 (patch) | |
| tree | dfb6c4288f22c176838ace87fed0949dd747a7dc /arch/riscv/include | |
| parent | 8aa278df0a338dfc05c731589051ab80373925c5 (diff) | |
riscv: Introduce CONFIG_XIP to support booting from flash
When U-Boot boots from flash, during the boot process,
hart_lottery and available_harts_lock variable addresses
point to flash which is not writable. This causes boot
failures on AE350. Introduce a config option CONFIG_XIP
to support such configuration.
Signed-off-by: Rick Chen <[email protected]>
Cc: Greentime Hu <[email protected]>
Reviewed-by: Lukas Auer <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Diffstat (limited to 'arch/riscv/include')
| -rw-r--r-- | arch/riscv/include/asm/global_data.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/global_data.h b/arch/riscv/include/asm/global_data.h index dffcd45bf01..b74bd7e738b 100644 --- a/arch/riscv/include/asm/global_data.h +++ b/arch/riscv/include/asm/global_data.h @@ -27,7 +27,9 @@ struct arch_global_data { #ifdef CONFIG_SMP struct ipi_data ipi[CONFIG_NR_CPUS]; #endif +#ifndef CONFIG_XIP ulong available_harts; +#endif }; #include <asm-generic/global_data.h> |
