UPSTREAM: emulation/qemu-i440fx: Use SMBIOS macros
BUG=none
BRANCH=none
TEST=none
Change-Id: I011187430dffbf233b7afd7b2b50f5f86567efee
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: b4d0757855
Original-Change-Id: Idda4d74f9b934ccefe6ea5b553bde587059cde64
Original-Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Original-Reviewed-on: https://review.coreboot.org/18790
Original-Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Philippe Mathieu-Daud <philippe.mathieu.daude@gmail.com>
Reviewed-on: https://chromium-review.googlesource.com/458341
This commit is contained in:
parent
dd261ce0a0
commit
5106b72d62
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue