diff options
author | Warner Losh <imp@FreeBSD.org> | 2017-08-26 23:04:19 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2017-08-26 23:04:19 +0000 |
commit | 45325886255297287729481572ef0204bcb903fe (patch) | |
tree | fb7749d81686096d422220d233285111791ba171 /sys/boot/efi/boot1/boot_module.h | |
parent | 57d7e4f5029986e97a27fcdea05997ef1cba03e6 (diff) | |
download | src-45325886255297287729481572ef0204bcb903fe.tar.gz src-45325886255297287729481572ef0204bcb903fe.zip |
Use efi_devpath_str for debug path info.
Kill our own hand-rolled (and somewhat flawed) devpath_str in favor of
the recently added efi_devpath_str in libefi. This gives us much
better names at the expense of not being able to debug on EFI 1.2
machines (since the UEFI protocol efi_devpath_str depends on was added
in UEFI 2.0). However, this isn't the first thing that requires newer
than EFI 1.2, so it's quite possible that this doesn't change the
universe of machines we can EFI boot from. This will now give us the
full UEFI path, even for devices we don't yet know about. More
importantly, it gives us the full HD(...) part of the path, which is
sufficient by itself to locate disks that follow the rules (dd one
disk (but not partition) to another still needs the rest of the path
to disambiguate, but that isn't following the rules that require every
GPT table to have globally unique GUIDs for every partion).
This also has the side effect of shrinking boot1.efi by ~3k.
Sponsored by: Netflix
Notes
Notes:
svn path=/head/; revision=322939
Diffstat (limited to 'sys/boot/efi/boot1/boot_module.h')
-rw-r--r-- | sys/boot/efi/boot1/boot_module.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/boot/efi/boot1/boot_module.h b/sys/boot/efi/boot1/boot_module.h index 5396cfd59cbf..bfade34fe9cb 100644 --- a/sys/boot/efi/boot1/boot_module.h +++ b/sys/boot/efi/boot1/boot_module.h @@ -106,7 +106,4 @@ extern const boot_module_t zfs_module; /* Functions available to modules. */ extern void add_device(dev_info_t **devinfop, dev_info_t *devinfo); extern int vsnprintf(char *str, size_t sz, const char *fmt, va_list ap); - -extern int devpath_strlcat(char *buf, size_t size, EFI_DEVICE_PATH *devpath); -extern char *devpath_str(EFI_DEVICE_PATH *devpath); #endif |