Expand description
Chipset system-control ports (0x92 and 0xCF9).
PC firmware toggles the A20 gate through port 0x92 before it enters
protected mode, and resets the machine through the same port or through the
PCI reset control register 0xCF9. A guest that does not see the A20 bit it
wrote assumes the gate stayed closed and falls back to the keyboard
controller (which the 8042 model does not implement), so the bit must read
back.
The model is deliberately small: A20 state and reset requests. Reset is recorded and reported to the runner, which turns it into a clean guest abort instead of restarting the world underneath the firmware.
Structs§
- System
Control - State of the system-control ports.
Constants§
- A20_
ENABLE 0x92bit 1: A20 gate enabled.- FAST_
RESET 0x92bit 0: fast reset request.- PORT_A
- System control port A (A20 gate and fast reset).
- PORT_
RESET - PCI reset control register.
Functions§
- handles_
port - True if
portbelongs to the system-control model.