Skip to content

Missing PAM write protection corrupts the VGA BIOS during Windows 98 shutdown #1635

Description

@jlxip

After installing VMDisp9x in Windows 98 SE, shutting down leaves a black screen with the CPU busy. Pressing a key makes CPU usage drop, but forcing a restart then runs ScanDisk because Windows did not shut down correctly.

During shutdown, the VGA BIOS clears B8000–BFFFF. This triggers Windows VDD's page-fault handling, which ends up overwriting C0000–C7FFF. PAM1=0x11 makes that shadow RAM read-only, but the code saves this value without protecting the memory. The VGA BIOS gets overwritten with 0x0720 text cells and shutdown never completes.

Honoring the PAM write-enable bits fixes it. The slop86 fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions