summaryrefslogtreecommitdiffstats
path: root/sys/boot/powerpc/loader/start.c
diff options
context:
space:
mode:
authorbenno <benno@FreeBSD.org>2001-10-07 13:22:25 +0000
committerbenno <benno@FreeBSD.org>2001-10-07 13:22:25 +0000
commit994f7977f13d1c6ac31ef785fbbc104972efe7b3 (patch)
treee41d72af3d7b410a29de1cb1506f5f96b1102823 /sys/boot/powerpc/loader/start.c
parentc0f87bdb1611f3ab744711a34cfc945ccc336830 (diff)
downloadFreeBSD-src-994f7977f13d1c6ac31ef785fbbc104972efe7b3.zip
FreeBSD-src-994f7977f13d1c6ac31ef785fbbc104972efe7b3.tar.gz
Mega-patch for OpenFirmware loader support.
- Flesh out ofw_readin routine. - Add OpenFirmware load and exec routines. - Make sure memory allocation for the kernel is done correctly. - Change the way the heap is allocated so as to make it easier to deallocate when we hand over. - Add a command to print memory maps similar to the one for ia64. With this patch, I can now load and hand over to a kernel on my iMac. There are some problems with OpenFirmware routines failing after the hand over that still need to be addressed.
Diffstat (limited to 'sys/boot/powerpc/loader/start.c')
-rw-r--r--sys/boot/powerpc/loader/start.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/boot/powerpc/loader/start.c b/sys/boot/powerpc/loader/start.c
index a9aef2a..9f37ce0 100644
--- a/sys/boot/powerpc/loader/start.c
+++ b/sys/boot/powerpc/loader/start.c
@@ -37,8 +37,6 @@
void startup(void *, int, int (*)(void *), char *, int);
-static int stack[8192/4 + 4];
-
#ifdef XCOFF_GLUE
asm("
.text
@@ -48,7 +46,11 @@ _entry:
");
#endif
-asm("
+__asm("
+ .data
+stack:
+ .space 16388
+
.text
.globl _start
_start:
OpenPOWER on IntegriCloud