aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-01-15 17:05:28 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-01-15 17:05:28 +0100
commit8128bc5b37842645d7c92aa765f68749b4229c31 (patch)
tree8f7d8363a0f24da7c4866e015b1e1d2080348c28
parentf98c5fc917bf06c408be24e98f659d606f8f5cf3 (diff)
downloadteachos-8128bc5b37842645d7c92aa765f68749b4229c31.tar.xz
teachos-8128bc5b37842645d7c92aa765f68749b4229c31.zip
x86_64/boot: fix early panic message printing
-rw-r--r--arch/x86_64/src/boot/boot32.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/src/boot/boot32.S b/arch/x86_64/src/boot/boot32.S
index cea1607..0e164e2 100644
--- a/arch/x86_64/src/boot/boot32.S
+++ b/arch/x86_64/src/boot/boot32.S
@@ -211,8 +211,8 @@ _panic:
push $0x4f
call _print
- mov 16(%ebp), %eax
- mov %eax, 8(%ebp)
+ mov 8(%ebp), %eax
+ mov %eax, 4(%esp)
call _print
add $8, %esp