Skip to content

Commit

Permalink
Merge pull request #77 from riscv/mtrap-fix
Browse files Browse the repository at this point in the history
mtrap: loop forever, really
  • Loading branch information
palmer-dabbelt committed Jan 23, 2018
2 parents 2e03ddb + e94752f commit e2aad2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machine/mtrap.c
Expand Up @@ -38,7 +38,7 @@ void poweroff(uint16_t code)
if (htif) {
htif_poweroff();
} else {
while (1);
while (1) { asm volatile ("#noop\n"); }
}
}

Expand Down

0 comments on commit e2aad2d

Please sign in to comment.