Fixed A20 after returning from SMM on Intel i686 CPU's.
This commit is contained in:
@@ -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;
|
cpu_state.seg_gs.ar_high = (saved_state[SMRAM_FIELD_P6_GS_SELECTOR_AR] >> 24) & 0xff;
|
||||||
smm_seg_load(&cpu_state.seg_gs);
|
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]);
|
keyboard_at_set_a20_key(!saved_state[SMRAM_FIELD_P6_A20M]);
|
||||||
mem_a20_recalc();
|
mem_a20_recalc();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user