Execute the cleanup handlers before jumping to the kernel just

like the other architectures do.
This commit is contained in:
Marius Strobl 2009-12-24 15:23:51 +00:00
parent 5e01e025a2
commit 005ad6daf8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=200946

View File

@ -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);