Date: Fri, 10 Apr 2015 18:49:44 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r281377 - head/sys/boot/efi/loader/arch/i386 Message-ID: <201504101849.t3AInipT053498@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504101849.t3AInipT053498>