1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-25 07:49:18 +00:00
Mirror of the FreeBSD src repository https://git.FreeBSD.org/src.git .
Go to file
Ed Maste 54f97d1eef UEFI: combine GetMemoryMap and ExitBootServices and retry on error
The EFI memory map may change before or during the first
ExitBootServices call. In that case ExitBootServices returns an error,
and GetMemoryMap and ExitBootServices must be retried.

Glue together calls to GetMemoryMap(), ExitBootServices() and storage of
(now up-to-date) MODINFOMD_EFI_MAP metadata within a single function.

That new function - bi_add_efi_data_and_exit() - uses space previously
allocated in bi_load_efi_data() to store the memory map (it will fail if
that space is too short). It handles re-calling GetMemoryMap() once to
update the map key if necessary. Finally, if ExitBootServices() is
successful, it stores the memory map and its header as MODINFOMD_EFI_MAP
metadata.

ExitBootServices() calls are now done earlier, from within arch-
independent bi_load() code.

PR:		202455
Submitted by:	Ganael LAPLANCHE
Reviewed by:	kib
MFC after:	2 weeks
Relnotes:	Yes
Differential Revision:	https://reviews.freebsd.org/D4296
2015-12-16 16:19:18 +00:00
bin
cddl
contrib lldb(1): Document core file option -c / -core 2015-12-16 03:59:54 +00:00
crypto
etc Integrate tools/regression/lib/libc/nss into the FreeBSD test suite as 2015-12-16 08:09:03 +00:00
gnu
include resolver: preserve binary compatibility; reduce header pollution 2015-12-14 17:21:06 +00:00
kerberos5
lib As a followup to r292330, standardize on size_t and add a few comments. 2015-12-16 09:20:45 +00:00
libexec
release
rescue
sbin Add flag to disable inital reboot(8) userland sync 2015-12-15 14:17:07 +00:00
secure Build engines in parallel. 2015-12-15 19:57:56 +00:00
share Regenerate after r292283. 2015-12-15 18:44:28 +00:00
sys UEFI: combine GetMemoryMap and ExitBootServices and retry on error 2015-12-16 16:19:18 +00:00
targets
tests Add ATF_REQUIRE_FEATURE and PLAIN_REQUIRE_FEATURE macros for 2015-12-16 05:44:53 +00:00
tools Integrate a number of testcases from tools/regression/lib/msun 2015-12-16 09:11:11 +00:00
usr.bin Start on a new library (libsysdecode) that provides routines for decoding 2015-12-15 00:05:07 +00:00
usr.sbin Build mount_smbfs for arm. Also sort the subdirs. 2015-12-16 15:26:31 +00:00
.arcconfig
.arclint
COPYRIGHT
LOCKS
MAINTAINERS Keep maintainance of GELI and make it clear which directories I'm interested in. 2015-12-16 01:05:50 +00:00
Makefile Update advice on obj disk space requirements 2015-12-14 19:20:18 +00:00
Makefile.inc1 Follow-up r290423: Don't use CSH for buildenv shell. 2015-12-14 23:25:31 +00:00
ObsoleteFiles.inc
README
UPDATING

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree.  See build(7)
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

The `buildkernel` and `installkernel` targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process.  See build(7), config(8),
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
for more information.

Note: If you want to build and install the kernel with the
`buildkernel` and `installkernel` targets, you might need to build
world before.  More information is available in the handbook.

The kernel configuration files reside in the sys/<arch>/conf
sub-directory.  GENERIC is the default configuration used in release builds.
NOTES contains entries and documentation for all possible
devices, not just those commonly used.


Source Roadmap:
---------------

bin		System/user commands.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tests		Regression tests which can be run by Kyua.  See tests/README
		for additional information.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html