aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAtish Patra <atish.patra@wdc.com>2020-03-20 15:10:36 -0700
committerAnup Patel <anup@brainfault.org>2020-03-21 09:21:47 +0530
commit9a74a64ae08bfeda8dc366e931f5a60838d7bac0 (patch)
treef8e28575f13a23c40165bd371bc2439e851eca8e /scripts
parenta0c88ddb31ec5ce43f1dd8759a918ea590429176 (diff)
lib: Check MSIP bit after returning from WFI
Commit 71d2b837c46e (lib: Move all coldboot wait APIs to sbi_init.c) caused a regression while moving the code from sbi_hart.c to sbi_init.c. As per original commit text, WFI can be implemented as a NOP according to the RISC-V privilege specification. Software should ensure that relevant interrupt pending bits are set. Otherwise, loop back to WFI. Fix the regression by applying the original patch to sbi_init.c. Fixes: 71d2b837c46e ("lib: Move all coldboot wait APIs to sbi_init.c") Signed-off-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions