Skip to content

Commit

Permalink
Clear GFX_STATUS before boot
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Nov 11, 2023
1 parent 13f7cf0 commit 5a2b4cf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions retail/bootloader/source/arm9/main.arm9.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions retail/bootloaderi/source/arm9/main.arm9.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions retail/cardengine/arm9/source/cardengine.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions retail/cardenginei/arm9/source/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions retail/cardenginei/arm9_dsiware/source/cardengine.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5a2b4cf

Please sign in to comment.