mirror of
https://github.com/86Box/86Box.git
synced 2026-02-24 10:28:19 -07:00
correctly set interrupt_enable at boot + start working on vram config
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
|
||||
const device_config_t nv3_config[] =
|
||||
{
|
||||
// VBIOS type configuration
|
||||
{
|
||||
.name = "VBIOS",
|
||||
.description = "VBIOS",
|
||||
@@ -90,6 +91,30 @@ const device_config_t nv3_config[] =
|
||||
},
|
||||
}
|
||||
},
|
||||
// Memory configuration
|
||||
{
|
||||
.name = "VRAM",
|
||||
.description = "VRAM",
|
||||
.type = CONFIG_SELECTION,
|
||||
.selection =
|
||||
{
|
||||
// This never existed officially but was planned. Same for 64-bit bus. Debug only
|
||||
{
|
||||
.description = "2 MB (Never officially sold)",
|
||||
.value = VRAM_SIZE_2MB,
|
||||
},
|
||||
|
||||
{
|
||||
.description = "4 MB",
|
||||
.value = VRAM_SIZE_4MB,
|
||||
},
|
||||
{
|
||||
.description = "8 MB",
|
||||
.value = VRAM_SIZE_8MB,
|
||||
},
|
||||
}
|
||||
|
||||
},
|
||||
{
|
||||
.type = CONFIG_END
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ void nv3_pmc_init()
|
||||
nv_log("NV3: Initialising PMC....\n");
|
||||
|
||||
nv3->pmc.boot = NV3_BOOT_REG_DEFAULT;
|
||||
nv3->pmc.interrupt_enable = NV3_PMC_INTERRUPT_ENABLE_HARDWARE | NV3_PMC_INTERRUPT_ENABLE_HARDWARE;
|
||||
nv3->pmc.interrupt_enable = NV3_PMC_INTERRUPT_ENABLE_HARDWARE | NV3_PMC_INTERRUPT_ENABLE_SOFTWARE;
|
||||
|
||||
nv_log("NV3: Initialising PMC: Done\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user