Fixed A20 after returning from SMM on Intel i686 CPU's.

This commit is contained in:
OBattler
2020-04-01 09:06:30 +02:00
parent b8b198a56a
commit eccaafdbe8

View File

@@ -933,7 +933,7 @@ void smram_restore_state_p6(uint32_t *saved_state)
cpu_state.seg_gs.ar_high = (saved_state[SMRAM_FIELD_P6_GS_SELECTOR_AR] >> 24) & 0xff;
smm_seg_load(&cpu_state.seg_gs);
mem_a20_alt = (!saved_state[SMRAM_FIELD_P6_A20M]) << 1;
mem_a20_alt = 0;
keyboard_at_set_a20_key(!saved_state[SMRAM_FIELD_P6_A20M]);
mem_a20_recalc();