Skip to content

Commit

Permalink
optionsrom: Reserve space for checksum
Browse files Browse the repository at this point in the history
Always add a byte before the final 512-bytes alignment to reserve the
space for the ROM checksum.

Signed-off-by: Jan Kiszka <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
  • Loading branch information
jan-kiszka authored and avikivity committed Feb 18, 2012
1 parent 1189aa5 commit 209ca75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pc-bios/optionrom/optionrom.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@
movw %ax, %ds;

#define OPTION_ROM_END \
.align 512, 0; \
.byte 0; \
.align 512, 0; \
_end:

#define BOOT_ROM_END \
Expand Down

0 comments on commit 209ca75

Please sign in to comment.