Statistics
| Branch: | Revision:

root / pc-bios / optionrom @ feature-archipelago

Name Size
Makefile 923 Bytes
kvmvapic.S 5.1 kB
linuxboot.S 2.9 kB
multiboot.S 5 kB
optionrom.h 3.2 kB

Latest revisions

# Date Author Comment
46eef33b 02/17/2014 01:44 pm Brad

Fix QEMU build on OpenBSD on x86 archs

This resolves the build issue with building the ROMs on OpenBSD on x86 archs.
As of OpenBSD 5.3 the compiler builds PIE binaries by default and thus the
whole OS/packages and so forth. The ROMs need to have PIE disabled....

390fb6b4 06/28/2013 10:01 pm Kevin Wolf

multiboot: Don't forget last mmap entry

When the BIOS returns ebx = 0, the current entry is still valid and
needs to be included in the Multiboot memory map.

Fixing this meant that using bx as the entry index doesn't work any
more because it's 0 on the last entry (and it was SeaBIOS-specific...

26a8ec07 06/28/2013 10:01 pm Kevin Wolf

multiboot: Calculate upper_mem in the ROM

The upper_mem field of the Multiboot information struct doesn't really
contain the RAM size - 1 MB like we used to calculate it, but only the
memory from 1 MB up to the first (upper) memory hole.

In order to correctly retrieve this information, the multiboot ROM now...

0d09e41a 04/08/2013 07:13 pm Paolo Bonzini

hw: move headers to include/

Many of these should be cleaned up with proper qdev-/QOM-ification.
Right now there are many catch-all headers in include/hw/ARCH depending
on cpu.h, and this makes it necessary to compile these files per-target.
However, fixing this does not belong in these patches....

c6e052f0 11/30/2012 04:27 pm Paolo Bonzini

multiboot: fix e801 memory map

The e801 memory sizes in the multiboot structures hard-code the available
low memory to 640. However, the value should not include the size of the
EBDA. Fill the value in the option ROM, getting the size of low memory
from the BIOS....

0d6b9cc7 04/16/2012 04:41 pm Jan Kiszka

signrom: Rewrite as python script

Now that we have a hard dependency on python anyway, we can replace the
slow shell script to calculate the option ROM checksum with a fast AND
portable python version. Tested both with python 2.7 and 3.1.

Signed-off-by: Jan Kiszka <>

50198112 02/18/2012 12:16 pm Jan Kiszka

kvmvapic: Use optionrom helpers

Use OPTION_ROM_START/END from the common header file, add comment to
init code.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Avi Kivity <>

1189aa51 02/18/2012 12:16 pm Jan Kiszka

kvmvapic: Simplify mp/up_set_tpr

The CH registers is only written, never read. So we can remove these
operations and, in case of up_set_tpr, also the ECX push/pop.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Avi Kivity <>

209ca750 02/18/2012 12:16 pm Jan Kiszka

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 <>

2a2af967 02/18/2012 12:15 pm Jan Kiszka

kvmvapic: Add option ROM

This imports and builds the original VAPIC option ROM of qemu-kvm.
Its interaction with QEMU is described in the commit that introduces the
corresponding device model.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Avi Kivity <>

View revisions

Also available in: Atom