Spotlight › Hibernate
Hibernate and resume
A build-matched conventional-memory snapshot, restored through a BIOS-accessible hard disk.
- Saved RAM
- 640KB
- Resident code
- 259 bytes
- Disk calls per direction
- About 80
01 / Snapshot contract
Snapshot contract
Hibernate saves the desktop session to the hard disk and stops execution. A subsequent boot offers Resume or Discard. Window positions, package state and clipboard are restored from the snapshot rather than reopened from application files.
This is os8088's own mechanism. It does not depend on ACPI sleep states or a machine-specific suspend BIOS.
02 / Save and resume sequence
Save and resume sequence
The captures show one emulator session through save, restart and restore. They are functional evidence, not a measurement of a physical XT's disk latency.
03 / Restore path
Restore path
The save payload is an uncompressed conventional-memory image. Device-owning drivers detach before save and reinitialise after restore; the boot-time clock replaces the snapshot clock. The recorded resident hook is 259 bytes, with the larger operation in the load-on-demand HIBER driver.
Restoration requires the same kernel build and a BIOS-readable disk. The final reader relocates into text VRAM so it can overwrite conventional RAM, then transfers control into the saved session. A different-build image is rejected. The format and ordering are specified in the project's Hibernate contract.
04 / Resume constraints
Resume constraints
A writable, BIOS-accessible hard disk is required. Active XMS allocations block hibernation because this format does not save them. A direct-controller-only volume is unsuitable for the BIOS restore path.
A dual-display session resumes as a single-display desktop until a normal restart. A snapshot is not a portable application checkpoint; changing the build or relevant machine configuration invalidates that assumption.
05 / Exercise resume
Exercise resume
Use a writable copy of the live hard-disk image or an installed BIOS-accessible volume. Wait for the completion screen before powering off. Restart with the same image and choose Resume; use Discard to test a clean boot instead.
qemu-system-i386 -drive file=os8088-usb.img,format=raw -boot c \
-chardev msmouse,id=m0 -serial chardev:m0