diff options
author | Alex Williamson <alex.williamson@hp.com> | 2008-09-25 11:52:25 -0600 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-10-02 15:33:35 +0300 |
commit | dd0f27d08ce415da6a5215f0901e7d98ab084f79 (patch) | |
tree | e9ba24bb5e2849a46ee851667c5e107624e0e6bf /bios | |
parent | 6b5acda94ab0cd906aeb8beb2bf2a96def301910 (diff) |
kvm: bios: fix SMBIOS end address range reporting
kvm: bios: fix SMBIOS end address range reporting
The -1 seems to be in the wrong place here.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'bios')
-rwxr-xr-x | bios/rombios32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bios/rombios32.c b/bios/rombios32.c index a0c1774d..8e015710 100755 --- a/bios/rombios32.c +++ b/bios/rombios32.c @@ -1973,7 +1973,7 @@ smbios_type_19_init(void *start, uint32_t memory_size_mb) p->header.handle = 0x1300; p->starting_address = 0; - p->ending_address = (memory_size_mb-1) * 1024; + p->ending_address = (memory_size_mb * 1024) - 1; p->memory_array_handle = 0x1000; p->partition_width = 1; @@ -1994,7 +1994,7 @@ smbios_type_20_init(void *start, uint32_t memory_size_mb) p->header.handle = 0x1400; p->starting_address = 0; - p->ending_address = (memory_size_mb-1)*1024; + p->ending_address = (memory_size_mb * 1024) - 1; p->memory_device_handle = 0x1100; p->memory_array_mapped_address_handle = 0x1300; p->partition_row_position = 1; |