diff options
| author | Michael Brown | 2025-04-23 10:53:38 +0200 |
|---|---|---|
| committer | Michael Brown | 2025-04-23 11:08:16 +0200 |
| commit | 0bf0f8716a3c7f85455707d8c2d727d130ee1024 (patch) | |
| tree | 2e0df1ce4cd78c980c03013b3a6528998809cf10 /src/interface/efi/efi_smbios.c | |
| parent | [acpi] Remove userptr_t from ACPI table parsing (diff) | |
| download | ipxe-0bf0f8716a3c7f85455707d8c2d727d130ee1024.tar.gz ipxe-0bf0f8716a3c7f85455707d8c2d727d130ee1024.tar.xz ipxe-0bf0f8716a3c7f85455707d8c2d727d130ee1024.zip | |
[smbios] Remove userptr_t from SMBIOS structure parsing
Simplify the SMBIOS structure parsing code by assuming that all
structure content is fully accessible via pointer dereferences.
In particular, this allows the convoluted find_smbios_structure() and
read_smbios_structure() to be combined into a single function
smbios_structure() that just returns a direct pointer to the SMBIOS
structure, with smbios_string() similarly now returning a direct
pointer to the relevant string.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface/efi/efi_smbios.c')
| -rw-r--r-- | src/interface/efi/efi_smbios.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interface/efi/efi_smbios.c b/src/interface/efi/efi_smbios.c index 3c1b77bdc..5d0e69d6b 100644 --- a/src/interface/efi/efi_smbios.c +++ b/src/interface/efi/efi_smbios.c @@ -20,6 +20,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include <errno.h> +#include <ipxe/uaccess.h> #include <ipxe/smbios.h> #include <ipxe/efi/efi.h> #include <ipxe/efi/Guid/SmBios.h> |
