summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-01-31 15:06:59 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-03-01 08:22:10 +0000
commit6724ba4f045cbbe2326463cbeaf59becfb01342e (patch)
tree4cb8b3e230978d69e75b866b4e0c5eddf7e75600 /src/arch/x86
parent69ff4281596127622f4ef941a37d80baec4f65b1 (diff)
memory_info.h: Store SMBIOS error correction type
There are platforms that support error correction types other than single-bit ECC. Extend meminfo to accomodate additional ECC types. It is assumed that `struct memory_info` is packed to save space. Thus, use `uint8_t` instead of an enum type (which are usually 4 bytes wide). Change-Id: I863f8e34c84841d931dfb8d7067af0f12a437e36 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50178 Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/smbios.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c
index 4c20d52dfd..bd7f4224ec 100644
--- a/src/arch/x86/smbios.c
+++ b/src/arch/x86/smbios.c
@@ -445,8 +445,7 @@ static int get_socket_type(void)
unsigned int __weak smbios_memory_error_correction_type(struct memory_info *meminfo)
{
- return meminfo->ecc_capable ?
- MEMORY_ARRAY_ECC_SINGLE_BIT : MEMORY_ARRAY_ECC_NONE;
+ return meminfo->ecc_type;
}
unsigned int __weak smbios_processor_external_clock(void)