aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/i386/libi386/elf64_freebsd.c
diff options
context:
space:
mode:
authorPaul Saab <ps@FreeBSD.org>2000-06-14 10:34:29 +0000
committerPaul Saab <ps@FreeBSD.org>2000-06-14 10:34:29 +0000
commitcc3d937224fbe6b30a3909c0cc6a890eea686e9f (patch)
tree0a7b83f74c2eb6b28643c20e914df2f9c0edb2f1 /sys/boot/i386/libi386/elf64_freebsd.c
parent8a0b95d6107abe286c17cb885d8c2ab886e7c449 (diff)
downloadsrc-cc3d937224fbe6b30a3909c0cc6a890eea686e9f.tar.gz
src-cc3d937224fbe6b30a3909c0cc6a890eea686e9f.zip
Delay calling the device cleanup routines until the absolute last
moment. We were cleaning up after PXE too early and the module dependancy code would not be able to load any files if it needed too.
Notes
Notes: svn path=/head/; revision=61659
Diffstat (limited to 'sys/boot/i386/libi386/elf64_freebsd.c')
-rw-r--r--sys/boot/i386/libi386/elf64_freebsd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/boot/i386/libi386/elf64_freebsd.c b/sys/boot/i386/libi386/elf64_freebsd.c
index f528d9653f19..a3ad9fb19043 100644
--- a/sys/boot/i386/libi386/elf64_freebsd.c
+++ b/sys/boot/i386/libi386/elf64_freebsd.c
@@ -84,6 +84,7 @@ elf_exec(struct preloaded_file *fp)
printf("Start @ 0x%lx ...\n", entry);
#endif
+ dev_cleanup();
__exec((void *)entry, boothowto, bootdev, 0, 0, 0, bootinfop);
panic("exec returned");