diff options
author | Tom Rini <trini@konsulko.com> | 2019-05-09 07:11:52 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-05-09 07:11:52 -0400 |
commit | 7d41f2dcbe5b25c0099d74a610cc586b940c50ab (patch) | |
tree | 4284df3fa3784336f1bdd59f81daee26129dd89c /arch/riscv/cpu/cpu.c | |
parent | 7aaf2af0e07f9923976372ff7a3ce7a0f8004723 (diff) | |
parent | 3cedc97479ff44cdc00485de7517a833e3dfb630 (diff) |
Merge git://git.denx.de/u-boot-riscv
- Correct SYS_TEXT_BASE for qemu.
- Support booti.
- Increase SYSBOOTM_LEN for Fedora/RISCV kernel.
- Support SMP booting from flash.
Diffstat (limited to 'arch/riscv/cpu/cpu.c')
-rw-r--r-- | arch/riscv/cpu/cpu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/riscv/cpu/cpu.c b/arch/riscv/cpu/cpu.c index c32de8a4c3e..e9a8b437ed0 100644 --- a/arch/riscv/cpu/cpu.c +++ b/arch/riscv/cpu/cpu.c @@ -15,7 +15,10 @@ * The variables here must be stored in the data section since they are used * before the bss section is available. */ +#ifdef CONFIG_OF_PRIOR_STAGE phys_addr_t prior_stage_fdt_address __attribute__((section(".data"))); +#endif +#ifndef CONFIG_XIP u32 hart_lottery __attribute__((section(".data"))) = 0; /* @@ -23,6 +26,7 @@ u32 hart_lottery __attribute__((section(".data"))) = 0; * finished initialization of global data. */ u32 available_harts_lock = 1; +#endif static inline bool supports_extension(char ext) { |