mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 15:31:22 +01:00
firmware: Add a barrier instruction for wait for boot hart
Multi-core communication via memory requires the addition of a barrier instructions to ensure cache coherency. Signed-off-by: Xiang Wang <wxjstz@126.com>
This commit is contained in:
@@ -114,6 +114,7 @@ _fdt_reloc_done:
|
||||
|
||||
/* Wait for boot hart */
|
||||
_wait_for_boot_hart:
|
||||
fence rw, rw
|
||||
la a4, _boot_hart_done
|
||||
REG_L a5, (a4)
|
||||
beqz a5, _wait_for_boot_hart
|
||||
|
Reference in New Issue
Block a user