summaryrefslogtreecommitdiffstats
path: root/sys/boot/sparc64
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2009-12-24 15:23:51 +0000
committermarius <marius@FreeBSD.org>2009-12-24 15:23:51 +0000
commit77111865f4a5b2befae60592bd1525c1caf42f99 (patch)
treefbe5d88cbc706cb9bd13eef3160d1b3efd95b6c2 /sys/boot/sparc64
parent6ed46c5871e16a4add6c9e8586ef74e1b4c0624d (diff)
downloadFreeBSD-src-77111865f4a5b2befae60592bd1525c1caf42f99.zip
FreeBSD-src-77111865f4a5b2befae60592bd1525c1caf42f99.tar.gz
Execute the cleanup handlers before jumping to the kernel just
like the other architectures do.
Diffstat (limited to 'sys/boot/sparc64')
-rw-r--r--sys/boot/sparc64/loader/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/boot/sparc64/loader/main.c b/sys/boot/sparc64/loader/main.c
index a9f641e..604e792 100644
--- a/sys/boot/sparc64/loader/main.c
+++ b/sys/boot/sparc64/loader/main.c
@@ -386,6 +386,8 @@ __elfN(exec)(struct preloaded_file *fp)
pmap_print_tlb_sun4u();
#endif
+ dev_cleanup();
+
entry = e->e_entry;
OF_release((void *)heapva, HEAPSZ);
OpenPOWER on IntegriCloud