diff options
author | grehan <grehan@FreeBSD.org> | 2004-07-08 06:09:22 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2004-07-08 06:09:22 +0000 |
commit | 6001ea529185d312e4ca00a8902a6f10530288e0 (patch) | |
tree | 12c56937106bbca1190dfd026ec9fa428858a93c /sys/boot/ofw | |
parent | 9063ace8b46b3a85ac81f553245ed2fb2a138ed0 (diff) | |
download | FreeBSD-src-6001ea529185d312e4ca00a8902a6f10530288e0.zip FreeBSD-src-6001ea529185d312e4ca00a8902a6f10530288e0.tar.gz |
All hell breaks loose if the loader image is released before
jumping to the kernel. Another bug exposed by removing the
1:1 BAT mapping. Sparc64 doesn't do this either.
Compile tested on: panther (sparc64). Code built, but not used, on sparc64.
Diffstat (limited to 'sys/boot/ofw')
-rw-r--r-- | sys/boot/ofw/libofw/openfirm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/boot/ofw/libofw/openfirm.c b/sys/boot/ofw/libofw/openfirm.c index 22296ec..41efbf6 100644 --- a/sys/boot/ofw/libofw/openfirm.c +++ b/sys/boot/ofw/libofw/openfirm.c @@ -898,7 +898,7 @@ OF_exit() } /* Free <size> bytes starting at <virt>, then call <entry> with <arg>. */ -#ifdef __notyet__ +#if 0 void OF_chain(void *virt, u_int size, void (*entry)(), void *arg, u_int len) { @@ -936,8 +936,10 @@ OF_chain(void *virt, u_int size, void (*entry)(), void *arg, u_int len) /* * This is a REALLY dirty hack till the firmware gets this going */ +#if 0 if (size > 0) OF_release(virt, size); +#endif entry(0, 0, openfirmware, arg, len); } |