summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/aim/locore.S
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2008-04-16 23:28:12 +0000
committermarcel <marcel@FreeBSD.org>2008-04-16 23:28:12 +0000
commita200693e6156c16781fa375ecb5e2ea9a6b6cae2 (patch)
treea0b99cbc9c791431b929dd66bd1a5d0c36415ff7 /sys/powerpc/aim/locore.S
parente3127074b582dbc674999dc16d5b709d6fecfa41 (diff)
downloadFreeBSD-src-a200693e6156c16781fa375ecb5e2ea9a6b6cae2.zip
FreeBSD-src-a200693e6156c16781fa375ecb5e2ea9a6b6cae2.tar.gz
Allocate a stack (with optional guard pages) for thread0 and
switch to it before calling mi_startup().
Diffstat (limited to 'sys/powerpc/aim/locore.S')
-rw-r--r--sys/powerpc/aim/locore.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/powerpc/aim/locore.S b/sys/powerpc/aim/locore.S
index ab6aade..62dd006 100644
--- a/sys/powerpc/aim/locore.S
+++ b/sys/powerpc/aim/locore.S
@@ -182,6 +182,9 @@ __start:
mr 7,21
bl powerpc_init
+ mr %r1, %r3
+ li %r3, 0
+ stw %r3, 0(%r1)
bl mi_startup
b OF_exit
OpenPOWER on IntegriCloud