diff options
author | marcel <marcel@FreeBSD.org> | 2008-04-16 23:28:12 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2008-04-16 23:28:12 +0000 |
commit | a200693e6156c16781fa375ecb5e2ea9a6b6cae2 (patch) | |
tree | a0b99cbc9c791431b929dd66bd1a5d0c36415ff7 /sys/powerpc/aim/locore.S | |
parent | e3127074b582dbc674999dc16d5b709d6fecfa41 (diff) | |
download | FreeBSD-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.S | 3 |
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 |