correctly set interrupt_enable at boot + start working on vram config

This commit is contained in:
starfrost013
2024-12-02 21:15:16 +00:00
parent 9753b0eca5
commit b514203079
2 changed files with 26 additions and 1 deletions

View File

@@ -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
}

View File

@@ -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");
}