summaryrefslogtreecommitdiffstats
path: root/src/interface/smbios
diff options
context:
space:
mode:
authorMichael Brown2013-03-20 16:06:40 +0100
committerMichael Brown2013-03-20 16:06:40 +0100
commitd938e50136b0bd7dbc56b250cd4363646e59c9fc (patch)
tree2b5cdf555219f0a238820dc55445f384441e72f3 /src/interface/smbios
parent[dhcp] Use PXE byte ordering for UUID in DHCP option 97 (diff)
downloadipxe-d938e50136b0bd7dbc56b250cd4363646e59c9fc.tar.gz
ipxe-d938e50136b0bd7dbc56b250cd4363646e59c9fc.tar.xz
ipxe-d938e50136b0bd7dbc56b250cd4363646e59c9fc.zip
[uuid] Abstract UUID mangling code out to a separate uuid_mangle() function
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface/smbios')
-rw-r--r--src/interface/smbios/smbios_settings.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/interface/smbios/smbios_settings.c b/src/interface/smbios/smbios_settings.c
index 4ca14476..663da968 100644
--- a/src/interface/smbios/smbios_settings.c
+++ b/src/interface/smbios/smbios_settings.c
@@ -22,7 +22,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <stdint.h>
#include <string.h>
#include <errno.h>
-#include <byteswap.h>
#include <ipxe/settings.h>
#include <ipxe/init.h>
#include <ipxe/uuid.h>
@@ -148,9 +147,7 @@ static int smbios_fetch ( struct settings *settings __unused,
( smbios_version() >= SMBIOS_VERSION ( 2, 6 ) ) ) {
DBG ( "SMBIOS detected mangled UUID\n" );
memcpy ( &uuid, &buf[tag_offset], sizeof ( uuid ) );
- __bswap_32s ( &uuid.canonical.a );
- __bswap_16s ( &uuid.canonical.b );
- __bswap_16s ( &uuid.canonical.c );
+ uuid_mangle ( &uuid );
raw = &uuid;
}