From 209ca750b9e1854fa8f63fae16aef15becb1cdea Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Fri, 17 Feb 2012 18:31:21 +0100 Subject: optionsrom: Reserve space for checksum Always add a byte before the final 512-bytes alignment to reserve the space for the ROM checksum. Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity --- pc-bios/optionrom/optionrom.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pc-bios') diff --git a/pc-bios/optionrom/optionrom.h b/pc-bios/optionrom/optionrom.h index aa783deed1..3daf7da495 100644 --- a/pc-bios/optionrom/optionrom.h +++ b/pc-bios/optionrom/optionrom.h @@ -124,7 +124,8 @@ movw %ax, %ds; #define OPTION_ROM_END \ - .align 512, 0; \ + .byte 0; \ + .align 512, 0; \ _end: #define BOOT_ROM_END \ -- cgit v1.2.3