From 5a2b4cfdad9285bc5cde3e832cbf5f1d6fbefbf7 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Sat, 11 Nov 2023 11:06:10 -0700 Subject: [PATCH] Clear GFX_STATUS before boot --- retail/bootloader/source/arm9/main.arm9.c | 1 + retail/bootloaderi/source/arm9/main.arm9.c | 1 + retail/cardengine/arm9/source/cardengine.c | 1 + retail/cardenginei/arm9/source/misc.c | 1 + retail/cardenginei/arm9_dsiware/source/cardengine.c | 1 + 5 files changed, 5 insertions(+) diff --git a/retail/bootloader/source/arm9/main.arm9.c b/retail/bootloader/source/arm9/main.arm9.c index 1518d45f0..da7d8da17 100644 --- a/retail/bootloader/source/arm9/main.arm9.c +++ b/retail/bootloader/source/arm9/main.arm9.c @@ -188,6 +188,7 @@ void __attribute__((target("arm"))) arm9_main(void) { dmaFill((u16*)&arm9_BLANK_RAM, VRAM_D, 272*1024); // Banks D (excluded), E, F, G, H, I REG_DISPSTAT = 0; + GFX_STATUS = 0; //VRAM_A_CR = 0; VRAM_B_CR = 0; diff --git a/retail/bootloaderi/source/arm9/main.arm9.c b/retail/bootloaderi/source/arm9/main.arm9.c index 5dc10ed50..53b269d8d 100644 --- a/retail/bootloaderi/source/arm9/main.arm9.c +++ b/retail/bootloaderi/source/arm9/main.arm9.c @@ -213,6 +213,7 @@ void __attribute__((target("arm"))) arm9_main(void) { dmaFill((u16*)&arm9_BLANK_RAM, VRAM_D, 272*1024); // Banks D (excluded), E, F, G, H, I REG_DISPSTAT = 0; + GFX_STATUS = 0; //VRAM_A_CR = 0; VRAM_B_CR = 0; diff --git a/retail/cardengine/arm9/source/cardengine.c b/retail/cardengine/arm9/source/cardengine.c index bafaf85a9..909b36024 100644 --- a/retail/cardengine/arm9/source/cardengine.c +++ b/retail/cardengine/arm9/source/cardengine.c @@ -252,6 +252,7 @@ void reset(u32 param) { REG_DISPSTAT = 0; REG_DISPCNT = 0; REG_DISPCNT_SUB = 0; + GFX_STATUS = 0; toncset((u16*)0x04000000, 0, 0x56); toncset((u16*)0x04001000, 0, 0x56); diff --git a/retail/cardenginei/arm9/source/misc.c b/retail/cardenginei/arm9/source/misc.c index 4b17ff6e9..3fc2a88a7 100644 --- a/retail/cardenginei/arm9/source/misc.c +++ b/retail/cardenginei/arm9/source/misc.c @@ -278,6 +278,7 @@ void reset(u32 param, u32 tid2) { REG_DISPSTAT = 0; REG_DISPCNT = 0; REG_DISPCNT_SUB = 0; + GFX_STATUS = 0; toncset((u16*)0x04000000, 0, 0x56); toncset((u16*)0x04001000, 0, 0x56); diff --git a/retail/cardenginei/arm9_dsiware/source/cardengine.c b/retail/cardenginei/arm9_dsiware/source/cardengine.c index d50742203..f76e4457e 100644 --- a/retail/cardenginei/arm9_dsiware/source/cardengine.c +++ b/retail/cardenginei/arm9_dsiware/source/cardengine.c @@ -168,6 +168,7 @@ void reset(u32 tid1, u32 tid2) { REG_DISPSTAT = 0; REG_DISPCNT = 0; REG_DISPCNT_SUB = 0; + GFX_STATUS = 0; toncset((u16*)0x04000000, 0, 0x56); toncset((u16*)0x04001000, 0, 0x56);