]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
smbios: Fix BIOS Characteristics Extension Byte 2
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Wed, 9 Jun 2021 15:14:47 +0000 (18:14 +0300)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 28 Jun 2021 17:57:13 +0000 (19:57 +0200)
We currently define the EFI support of an SMBIOS table as the third bit of
"BIOS Characteristics Extension Byte 1". The latest DMTF spec defines it
on "BIOS Characteristics Extension Byte 2".

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Remove superfluous assignment.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/smbios.h
lib/smbios.c

index ffeefb47372d0c64a1f6c8c8d5a14a91bfbc02a3..fc49fc10b9d7074c8d4c547d2c7cfa79d33689bc 100644 (file)
@@ -60,7 +60,7 @@ struct __packed smbios_entry {
 #define BIOS_CHARACTERISTICS_SELECTABLE_BOOT   (1 << 16)
 
 #define BIOS_CHARACTERISTICS_EXT1_ACPI         (1 << 0)
-#define BIOS_CHARACTERISTICS_EXT1_UEFI         (1 << 3)
+#define BIOS_CHARACTERISTICS_EXT2_UEFI         (1 << 3)
 #define BIOS_CHARACTERISTICS_EXT2_TARGET       (1 << 2)
 
 struct __packed smbios_type0 {
index 26df2bf123e036f37088a181b28dc99312223c09..b69f5e8c48d5c15cb4597ac572873ce385c8f1c1 100644 (file)
@@ -229,9 +229,9 @@ static int smbios_write_type0(ulong *current, int handle,
        t->bios_characteristics_ext1 = BIOS_CHARACTERISTICS_EXT1_ACPI;
 #endif
 #ifdef CONFIG_EFI_LOADER
-       t->bios_characteristics_ext1 |= BIOS_CHARACTERISTICS_EXT1_UEFI;
+       t->bios_characteristics_ext2 |= BIOS_CHARACTERISTICS_EXT2_UEFI;
 #endif
-       t->bios_characteristics_ext2 = BIOS_CHARACTERISTICS_EXT2_TARGET;
+       t->bios_characteristics_ext2 |= BIOS_CHARACTERISTICS_EXT2_TARGET;
 
        /* bios_major_release has only one byte, so drop century */
        t->bios_major_release = U_BOOT_VERSION_NUM % 100;