Move A20 gate initialisation to mem.c. Patch from Greatpsycho.
This commit is contained in:
parent
8b433633c0
commit
904ac54446
2 changed files with 4 additions and 2 deletions
|
|
@ -1938,7 +1938,7 @@ void mem_add_bios()
|
||||||
}
|
}
|
||||||
|
|
||||||
int mem_a20_key = 0, mem_a20_alt = 0;
|
int mem_a20_key = 0, mem_a20_alt = 0;
|
||||||
static int mem_a20_state = 1;
|
static int mem_a20_state = 2;
|
||||||
|
|
||||||
void mem_init()
|
void mem_init()
|
||||||
{
|
{
|
||||||
|
|
@ -2000,6 +2000,8 @@ void mem_init()
|
||||||
if (romset == ROM_IBMPS1_2011)
|
if (romset == ROM_IBMPS1_2011)
|
||||||
mem_mapping_add(&romext_mapping, 0xc8000, 0x08000, mem_read_romext, mem_read_romextw, mem_read_romextl, NULL, NULL, NULL, romext, 0, NULL);
|
mem_mapping_add(&romext_mapping, 0xc8000, 0x08000, mem_read_romext, mem_read_romextw, mem_read_romextl, NULL, NULL, NULL, romext, 0, NULL);
|
||||||
// pclog("Mem resize %i %i\n",mem_size,c);
|
// pclog("Mem resize %i %i\n",mem_size,c);
|
||||||
|
mem_a20_key = 2;
|
||||||
|
mem_a20_alt = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mem_remap_top(int max_size)
|
static void mem_remap_top(int max_size)
|
||||||
|
|
@ -2091,6 +2093,7 @@ void mem_resize()
|
||||||
|
|
||||||
// pclog("Mem resize %i %i\n",mem_size,c);
|
// pclog("Mem resize %i %i\n",mem_size,c);
|
||||||
mem_a20_key = 2;
|
mem_a20_key = 2;
|
||||||
|
mem_a20_alt = 0;
|
||||||
mem_a20_recalc();
|
mem_a20_recalc();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -308,7 +308,6 @@ void xt_laserxt_init()
|
||||||
void at_init()
|
void at_init()
|
||||||
{
|
{
|
||||||
AT = 1;
|
AT = 1;
|
||||||
mem_a20_key = mem_a20_alt = 0;
|
|
||||||
common_init();
|
common_init();
|
||||||
mem_add_bios();
|
mem_add_bios();
|
||||||
pit_set_out_func(&pit, 1, pit_refresh_timer_at);
|
pit_set_out_func(&pit, 1, pit_refresh_timer_at);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue