svn commit: r281377 - head/sys/boot/efi/loader/arch/i386
Ed Maste
emaste at FreeBSD.org
Fri Apr 10 18:49:45 UTC 2015
Author: emaste
Date: Fri Apr 10 18:49:43 2015
New Revision: 281377
URL: https://svnweb.freebsd.org/changeset/base/281377
Log:
Add build support for i386 loader.efi
Kernel changes are required for this to be useful but this will allow
others to experiment.
Differential Revision: https://reviews.freebsd.org/D2276
Added:
head/sys/boot/efi/loader/arch/i386/Makefile.inc (contents, props changed)
Modified:
head/sys/boot/efi/loader/arch/i386/elf32_freebsd.c
Added: head/sys/boot/efi/loader/arch/i386/Makefile.inc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sys/boot/efi/loader/arch/i386/Makefile.inc Fri Apr 10 18:49:43 2015 (r281377)
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+SRCS+= start.S \
+ efimd.c \
+ elf32_freebsd.c \
+ exec.c \
+ reloc.c
+
+.PATH: ${.CURDIR}/../../i386/libi386
+SRCS+= nullconsole.c \
+ comconsole.c
Modified: head/sys/boot/efi/loader/arch/i386/elf32_freebsd.c
==============================================================================
--- head/sys/boot/efi/loader/arch/i386/elf32_freebsd.c Fri Apr 10 18:08:09 2015 (r281376)
+++ head/sys/boot/efi/loader/arch/i386/elf32_freebsd.c Fri Apr 10 18:49:43 2015 (r281377)
@@ -48,6 +48,12 @@ static int elf32_obj_exec(struct preload
struct file_format i386_elf = { elf32_loadfile, elf32_exec };
struct file_format i386_elf_obj = { elf32_obj_loadfile, elf32_obj_exec };
+struct file_format *file_formats[] = {
+ &i386_elf,
+ &i386_elf_obj,
+ NULL
+};
+
/*
* There is an ELF kernel and one or more ELF modules loaded.
* We wish to start executing the kernel image, so make such
More information about the svn-src-head
mailing list