aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2021-02-10 20:21:11 +0100
committerHelge Deller <deller@gmx.de>2021-09-24 11:10:17 +0200
commitaa416f6af76e71a2fa24ca85485c62d61ceb6ca3 (patch)
treeed951034fe54884e332e4c5bbeafb1f0bf24c80b
parent31f42b359ab7fe940e36b99dced96651b21e8988 (diff)
downloadseabios-hppa-aa416f6af76e71a2fa24ca85485c62d61ceb6ca3.zip
seabios-hppa-aa416f6af76e71a2fa24ca85485c62d61ceb6ca3.tar.gz
seabios-hppa-aa416f6af76e71a2fa24ca85485c62d61ceb6ca3.tar.bz2
shadow.c: Compile int3 inline assembly on x86 only
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r--src/fw/shadow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fw/shadow.c b/src/fw/shadow.c
index 4c627a8..2ea7205 100644
--- a/src/fw/shadow.c
+++ b/src/fw/shadow.c
@@ -204,5 +204,7 @@ qemu_reboot(void)
outb(0x06, PORT_PCI_REBOOT);
// Next try triple faulting the CPU to force a reset
+#if CONFIG_X86
asm volatile("int3");
+#endif
}