aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gpllib/dmi/dmi.c
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2015-08-14 10:20:33 +0200
committerErwan Velu <erwanaliasr1@gmail.com>2015-09-04 17:57:52 +0200
commitbd8ccabb61c76321ee8df5c0fe9754f5008de423 (patch)
tree3d7946bf310b8ad8dbf75c2001c2d08450fd9fe7 /com32/gpllib/dmi/dmi.c
parent87472a3dd1827594832875ba4dab67d1d69b60da (diff)
downloadsyslinux-bd8ccabb61c76321ee8df5c0fe9754f5008de423.tar.gz
syslinux-bd8ccabb61c76321ee8df5c0fe9754f5008de423.tar.xz
syslinux-bd8ccabb61c76321ee8df5c0fe9754f5008de423.zip
gpllib: Updating dmi code
This is a simple rebase of the current code against current dmidecode version. This is pretty lame copy/paste but as we don't have a libification of dmidecode, that does the job. This patch does improve mostly the cpu & ram reporting.
Diffstat (limited to 'com32/gpllib/dmi/dmi.c')
-rw-r--r--com32/gpllib/dmi/dmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/gpllib/dmi/dmi.c b/com32/gpllib/dmi/dmi.c
index 5a25b413..7613383f 100644
--- a/com32/gpllib/dmi/dmi.c
+++ b/com32/gpllib/dmi/dmi.c
@@ -231,7 +231,7 @@ void dmi_bios_characteristics_x2(uint8_t code, s_dmi * dmi)
{
int i;
- for (i = 0; i <= 2; i++)
+ for (i = 0; i <= 4; i++)
if (code & (1 << i))
((bool *) (&dmi->bios.characteristics_x2))[i] = true;
}