summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-01-05 01:32:40 -0800
committerMike Pavone <pavone@retrodev.com>2013-01-05 01:32:40 -0800
commite21c1f8cffa7f6b474575155fd5fea73de900137 (patch)
treedf752daed3dba9ff66566509926c53d1c8d98b49
parent85e019659da303cc4f5f8235335a0861115e8936 (diff)
Fix crash in printf from "crash" function due to lack of clearing rax
-rw-r--r--runtime.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime.S b/runtime.S
index 0d3ab3f..7a64cf6 100644
--- a/runtime.S
+++ b/runtime.S
@@ -286,6 +286,7 @@ fifo_fallback:
crash:
mov %edi, %esi
lea bad_access_msg(%rip), %rdi
+ xor %rax, %rax
call printf
mov $1, %rdi
call exit