diff options
author | Paul Menzel <pmenzel@molgen.mpg.de> | 2017-03-12 18:18:06 +0100 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-03-21 17:34:51 +0100 |
commit | b4d07578554926c36b6256eca974bc12d41dffb5 (patch) | |
tree | 5498a85cf24a328a269d87744bc94479cd963299 /src/mainboard/emulation/qemu-i440fx | |
parent | b980d1ae80e360c320185dec7e414c23588f9965 (diff) | |
download | coreboot-b4d07578554926c36b6256eca974bc12d41dffb5.tar.xz |
emulation/qemu-i440fx: Use SMBIOS macros
Change-Id: Idda4d74f9b934ccefe6ea5b553bde587059cde64
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-on: https://review.coreboot.org/18790
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins)
Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
Diffstat (limited to 'src/mainboard/emulation/qemu-i440fx')
-rw-r--r-- | src/mainboard/emulation/qemu-i440fx/northbridge.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainboard/emulation/qemu-i440fx/northbridge.c b/src/mainboard/emulation/qemu-i440fx/northbridge.c index 575069cc7e..d465afe6d0 100644 --- a/src/mainboard/emulation/qemu-i440fx/northbridge.c +++ b/src/mainboard/emulation/qemu-i440fx/northbridge.c @@ -177,9 +177,9 @@ static int qemu_get_smbios_data16(int handle, unsigned long *current) t->type = SMBIOS_PHYS_MEMORY_ARRAY; t->handle = handle; t->length = len - 2; - t->location = 3; /* Location: System Board */ - t->use = 3; /* System memory */ - t->memory_error_correction = 3; /* No error correction */ + t->location = MEMORY_ARRAY_LOCATION_SYSTEM_BOARD; + t->use = MEMORY_ARRAY_USE_SYSTEM; + t->memory_error_correction = MEMORY_ARRAY_ECC_NONE; t->maximum_capacity = qemu_get_memory_size(); *current += len; return len; |