Fix video initialization on four 486 machines and the IDE SET DRIVE PARAMETERS command.

This commit is contained in:
OBattler
2026-02-07 18:37:11 +01:00
parent 7ec2e3f6a6
commit 6fa6e5c1ea
4 changed files with 10 additions and 2 deletions

View File

@@ -2610,8 +2610,8 @@ ide_callback(void *priv)
err = ABRT_ERR;
else {
/* Only accept after RESET or DIAG. */
if (ide->params_specified) {
ide->cfg_spt = ide->tf->secount;
if (!ide->params_specified) {
ide->cfg_spt = (ide->tf->secount == 0) ? 256 : ide->tf->secount;
ide->cfg_hpc = ide->tf->head + 1;
ide->params_specified = 1;