HardenedBSD/stand/mips/beri/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.c
beri_console.c beri loader: Replace getc/putc with beri_ prefixed versions 2018-03-12 03:54:38 +00:00
beri_disk_cfi.c Distinguish between "no partition" and "choose best partition" with a constant. 2019-03-24 18:51:52 +00:00
beri_disk_sdcard.c Distinguish between "no partition" and "choose best partition" with a constant. 2019-03-24 18:51:52 +00:00
devicename.c Remove d_type from devdesc. It's not needed as we can fetch it from 2018-03-12 21:39:59 +00:00
exec.c Unify metadata load files for arm, mips, powerpc, sparc64 2018-02-13 03:44:50 +00:00
help.mips
loader.h bootprog_info is generated in vers.c. Move it's definition to 2018-06-14 06:41:33 +00:00
loader.ldscript
main.c
Makefile Unify metadata load files for arm, mips, powerpc, sparc64 2018-02-13 03:44:50 +00:00
start.S
version