summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2011-05-01 20:17:07 -0700
committerRichard Henderson <rth@twiddle.net>2011-05-01 20:17:07 -0700
commit28a139998d9c6f123168c0edd5117ab00c0a6288 (patch)
tree1522eae68e6e59a351d0becfe23b48e837f41f1b
parent784fbf5895e0d0ca8086628a660b0f9c57fa4e80 (diff)
downloadqemu-palcode-28a139998d9c6f123168c0edd5117ab00c0a6288.tar.gz
Fix SMP stack initialization.
-rw-r--r--pal.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/pal.S b/pal.S
index e1e9746..2bc0b9c 100644
--- a/pal.S
+++ b/pal.S
@@ -83,7 +83,8 @@ __start:
// Initialize Stack.
SYS_WHAMI a0
lda t0, STACK_SIZE
- mull t0, a0, t0
+ addq a0, 1, t1
+ mull t0, t1, t0
ldah t1, stack($gp) !gprelhigh
lda t1, stack(t1) !gprellow
addq t0, t1, $sp