blob: 89ea16c94291f9c0d95198ab29d87f89c441446d [file] [log] [blame] [raw]
Always try kFreeBSD image format at first, as a customized kFreeBSD image could be multiboot compliant as well.
diff -ru --exclude-from freebsd-src-diff-exclude-names /var/tmp/freebsd-10.3-src/usr/src/sys/boot/i386/loader/conf.c freebsd-10.3/usr/src/sys/boot/i386/loader/conf.c
--- /var/tmp/freebsd-10.3-src/usr/src/sys/boot/i386/loader/conf.c 2016-03-25 09:09:27.000000000 +0800
+++ freebsd-10.3/usr/src/sys/boot/i386/loader/conf.c 2019-05-15 17:26:20.316401088 +0800
@@ -111,8 +111,6 @@
extern struct file_format multiboot_obj;
struct file_format *file_formats[] = {
- &multiboot,
- &multiboot_obj,
#ifdef LOADER_PREFER_AMD64
&amd64_elf,
&amd64_elf_obj,
@@ -123,6 +121,8 @@
&amd64_elf,
&amd64_elf_obj,
#endif
+ &multiboot,
+ &multiboot_obj,
NULL
};