optionsrom: Reserve space for checksum
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 17 Feb 2012 17:31:21 +0000 (18:31 +0100)
committerAvi Kivity <avi@redhat.com>
Sat, 18 Feb 2012 10:16:00 +0000 (12:16 +0200)
Always add a byte before the final 512-bytes alignment to reserve the
space for the ROM checksum.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
pc-bios/optionrom/optionrom.h

index aa783deed10ecacb39ecae2d1bd2b2f6dcadde13..3daf7da49576091e337b1dab814e87310d5ea25f 100644 (file)
        movw            %ax, %ds;
 
 #define OPTION_ROM_END                                 \
-    .align 512, 0;                                     \
+       .byte           0;                              \
+       .align          512, 0;                         \
     _end:
 
 #define BOOT_ROM_END                                   \