aboutsummaryrefslogtreecommitdiff
path: root/machine
diff options
context:
space:
mode:
Diffstat (limited to 'machine')
-rw-r--r--machine/htif.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/machine/htif.c b/machine/htif.c
index 5f8722f..7d2265c 100644
--- a/machine/htif.c
+++ b/machine/htif.c
@@ -109,8 +109,9 @@ void htif_console_putchar(uint8_t ch)
void htif_poweroff()
{
while (1) {
- fromhost = 0;
- tohost = 1;
+ spinlock_lock(&htif_lock);
+ __set_tohost(0, 0, 1);
+ spinlock_unlock(&htif_lock);
}
}