aboutsummaryrefslogtreecommitdiff
path: root/machine/mentry.S
diff options
context:
space:
mode:
Diffstat (limited to 'machine/mentry.S')
-rw-r--r--machine/mentry.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/machine/mentry.S b/machine/mentry.S
index 41d7017..3dcf2b6 100644
--- a/machine/mentry.S
+++ b/machine/mentry.S
@@ -91,6 +91,11 @@ trap_vector:
beqz a1, 1f
sfence.vma
1:
+ andi a1, a0, IPI_HALT
+ beqz a1, 1f
+ wfi
+ j 1b
+1:
j .Lmret