smbios: handle DIMM of 32G or more
commit9989171401175e9a701782bd08858b87c99183bc
authorJulien Viard de Galbert <jviarddegalbert@online.net>
Wed, 24 Jan 2018 10:04:46 +0000 (24 11:04 +0100)
committerMartin Roth <martinroth@google.com>
Fri, 26 Jan 2018 17:27:51 +0000 (26 17:27 +0000)
treea15c9f5d1e8568fc8b38d98a50efd81a76b1092f
parentefea957ed68b1e3f345b1bc8d1dc4cac30824325
smbios: handle DIMM of 32G or more

According to SMBIOS Reference Specification (1)
section 7.18.5 Memory Device — Extended Size

When the size cannot be represented in the size field, it must be set to
0x7fff and the real size stored in the extended_size field.

1: https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.1.1.pdf

Change-Id: Idc559454c16ccd685aaaed0d60f1af69b634ea2e
Signed-off-by: Julien Viard de Galbert <jviarddegalbert@online.net>
Reviewed-on: https://review.coreboot.org/23396
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
src/arch/x86/smbios.c