Browse Source

Merge pull request #77 from riscv/mtrap-fix

mtrap: loop forever, really
pull/70/merge
Palmer Dabbelt 8 years ago
committed by GitHub
parent
commit
e2aad2d122
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      machine/mtrap.c

2
machine/mtrap.c

@ -38,7 +38,7 @@ void poweroff(uint16_t code)
if (htif) {
htif_poweroff();
} else {
while (1);
while (1) { asm volatile ("#noop\n"); }
}
}

Loading…
Cancel
Save