diff options
author | Tom Rini <trini@konsulko.com> | 2019-04-08 22:32:11 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-04-08 22:32:11 -0400 |
commit | ffb269ab30dbce8ab87d09942e2a6951694516f1 (patch) | |
tree | 9dd752a4a6331f7b2c5d920294a0b31b06aea8c3 /arch/riscv/cpu/cpu.c | |
parent | 3c99166441bf3ea325af2da83cfe65430b49c066 (diff) | |
parent | 48b90d9db5d32e587901c4f33175488dd20fe0a5 (diff) |
Merge git://git.denx.de/u-boot-riscv
- RISC-V arch support SMP.
- Support Andestech's PLIC and PLMT.
- qemu, fu54e, ae350 boards enable SMP by default.
- Fix CONFIG_DEFAULT_DEVICE_TREE failure.
Diffstat (limited to 'arch/riscv/cpu/cpu.c')
-rw-r--r-- | arch/riscv/cpu/cpu.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/riscv/cpu/cpu.c b/arch/riscv/cpu/cpu.c index e662140427a..c32de8a4c3e 100644 --- a/arch/riscv/cpu/cpu.c +++ b/arch/riscv/cpu/cpu.c @@ -12,10 +12,17 @@ #include <dm/uclass-internal.h> /* - * prior_stage_fdt_address must be stored in the data section since it is used + * The variables here must be stored in the data section since they are used * before the bss section is available. */ phys_addr_t prior_stage_fdt_address __attribute__((section(".data"))); +u32 hart_lottery __attribute__((section(".data"))) = 0; + +/* + * The main hart running U-Boot has acquired available_harts_lock until it has + * finished initialization of global data. + */ +u32 available_harts_lock = 1; static inline bool supports_extension(char ext) { |