summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLukas Auer <[email protected]>2019-08-12 23:50:42 +0200
committerAnup Patel <[email protected]>2019-08-13 09:07:16 +0530
commit2e0f3ac758da99fb6d1b4c651643999d83cd0a7f (patch)
tree469e7b7c43d8d3c32e03642a6b4df6894fe8aace /include
parent6c24193293e7cc0854994d7551f32e31ebc06ff6 (diff)
firmware: do not use relocated _boot_status before it is valid
When OpenSBI is started from an address not equal to the link address, it is first relocated to the link address. Hart 0 performs the relocation and notifies the other harts of its completion with the _boot_status variable. It uses the copy of the variable relative to the link address. This copy contains valid data only after relocation has finished. The waiting harts will therefore read invalid data until relocation has finished. This can cause them to continue execution too early. Fix this by using the _boot_status variable relative to the load address while OpenSBI has not finished relocation. Signed-off-by: Lukas Auer <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions