mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
SMBIOS: Fix type 17 field sizes
Fields for configured_clock_speed and various voltage values introduced in spec v2.7+ should be "word", i.e. 16 bits. Reported-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Gabriel Somlo <somlo@cmu.edu> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
84351843eb
commit
0d73394ad9
2 changed files with 8 additions and 8 deletions
|
@ -182,10 +182,10 @@ struct smbios_type_17 {
|
|||
uint8_t part_number_str;
|
||||
uint8_t attributes;
|
||||
uint32_t extended_size;
|
||||
uint32_t configured_clock_speed;
|
||||
uint32_t minimum_voltage;
|
||||
uint32_t maximum_voltage;
|
||||
uint32_t configured_voltage;
|
||||
uint16_t configured_clock_speed;
|
||||
uint16_t minimum_voltage;
|
||||
uint16_t maximum_voltage;
|
||||
uint16_t configured_voltage;
|
||||
} QEMU_PACKED;
|
||||
|
||||
/* SMBIOS type 19 - Memory Array Mapped Address (v2.7) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue