freebsd-dev/stand/efi/loader
Ian Lepore 14243f8de7 Distinguish between "no partition" and "choose best partition" with a constant.
The values of the d_slice and d_partition fields of a disk_devdesc have a
few values with special meanings in the disk_open() routine. Through various
evolutions of the loader code over time, a d_partition value of -1 has
meant both "use the first ufs partition found in the bsd label" and "don't
open a bsd partition at all, open the raw slice."

This defines a new special value of -2 to mean open the raw slice, and it
gives symbolic names to all the special values used in d_slice and
d_partition, and adjusts all existing uses of those fields to use the new
constants.

The phab review for this timed out without being accepted, but I'm still
citing it below because there is useful commentary there.

Differential Revision:	https://reviews.freebsd.org/D19262
2019-03-24 18:51:52 +00:00
..
arch EFI: don't call printf after ExitBootServices, since it uses Boot Services 2019-03-02 04:02:11 +00:00
autoload.c efiloader: Setup FDT in autoload to fix overlays clobbering kenv 2018-08-23 13:38:38 +00:00
bootinfo.c Add retry loop around GetMemoryMap call to fix fragmentation bug 2019-03-06 05:39:40 +00:00
conf.c
copy.c Add retry loop around GetMemoryMap call to fix fragmentation bug 2019-03-06 05:39:40 +00:00
efi_main.c Cast error message in efi_main.c to CHAR16* to avoid build error 2018-12-13 23:49:20 +00:00
framebuffer.c efi-autoresizecons: Don't fail the boot w/o GOP or UGA 2018-08-04 06:40:18 +00:00
framebuffer.h
loader_efi.h
main.c Distinguish between "no partition" and "choose best partition" with a constant. 2019-03-24 18:51:52 +00:00
Makefile Extend libsecureboot(old libve) to obtain trusted certificates from UEFI and implement revocation 2019-03-06 06:39:42 +00:00
Makefile.depend
version