freebsd-skq/stand/i386/zfsboot
ian a4a2c9607b Eliminate duplicated code and struct member definitions in the handoff
of args data between gptboot/zfsboot and loader(8).

Despite what seems like a lot of changes here, there are no actual
changes in behavior, or in the data layout in the structures involved.
This is just eliminating identical code pasted into multiple locations.

In detail, the changes are...

- Move struct zfs_boot_args definition from libsa/zfs/libzfs.h to
  i386/common/bootargs.h because it is specific to x86 booting and the
  handoff between zfsboot and loader, and has no relation to the zfs
  library code in general.

- The geli_boot_args and zfs_boot_args structs both contain an identical
  set of member variables containing geli information.  Extract this out
  to a new geli_boot_data struct, and embed it in the arg-passing structs.

- Provide new routines geli_import_boot_data() and geli_export_boot_data()
  that can be shared between gptboot, zfsboot, and loader instead of
  pasting identical code into several different .c files.

- Remove some checks for a NULL pointer that can never be true because the
  pointer being tested was set using pointer math (kargs + 1) and that can
  never result in NULL in this code.
2018-12-03 03:58:30 +00:00
..
Makefile NM and OBJCOPY are already defined for all builds. There's no need to 2018-07-20 05:17:56 +00:00
Makefile.depend
zfsboot.8 Eliminate zfsloader man page. 2018-07-20 05:17:49 +00:00
zfsboot.c Eliminate duplicated code and struct member definitions in the handoff 2018-12-03 03:58:30 +00:00
zfsldr.S Turn loader GELI support in the boot loaders off by default as a 2017-12-14 17:00:24 +00:00