From acbf44a6b975aca7937b497b8b62aee0a6af1afc Mon Sep 17 00:00:00 2001 From: smea Date: Sun, 2 Mar 2014 16:06:34 +0100 Subject: [PATCH] arm11u && sdmc : fix --- arm11u/source/main.c | 10 +++++----- sdmc/source/main.c | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/arm11u/source/main.c b/arm11u/source/main.c index be61cd7..baf0c6d 100644 --- a/arm11u/source/main.c +++ b/arm11u/source/main.c @@ -26,10 +26,10 @@ void gspGpuInit() //set subscreen to blue u32 regData=0x01FF0000; - GSPGPU_WriteHWRegs(NULL, 0x202A04, (u8*)®Data, 4); + GSPGPU_WriteHWRegs(NULL, 0x202A04, ®Data, 4); //grab main left screen framebuffer addresses - GSPGPU_ReadHWRegs(NULL, 0x400468, (u8*)&topLeftFramebuffers, 8); + GSPGPU_ReadHWRegs(NULL, 0x400468, (u32*)&topLeftFramebuffers, 8); //convert PA to VA (assuming FB in VRAM) topLeftFramebuffers[0]+=0x7000000; @@ -71,10 +71,10 @@ void gspGpuExit() void swapBuffers() { u32 regData; - GSPGPU_ReadHWRegs(NULL, 0x400478, (u8*)®Data, 4); + GSPGPU_ReadHWRegs(NULL, 0x400478, (u32*)®Data, 4); regData^=1; currentBuffer=regData&1; - GSPGPU_WriteHWRegs(NULL, 0x400478, (u8*)®Data, 4); + GSPGPU_WriteHWRegs(NULL, 0x400478, (u32*)®Data, 4); } void copyBuffer() @@ -132,7 +132,7 @@ int main() u32 PAD=hidSharedMem[7]; u32 regData=PAD|0x01000000; - GSPGPU_WriteHWRegs(NULL, 0x202A04, (u8*)®Data, 4); + GSPGPU_WriteHWRegs(NULL, 0x202A04, (u32*)®Data, 4); renderEffect(); swapBuffers(); diff --git a/sdmc/source/main.c b/sdmc/source/main.c index c845177..3a6ceb4 100644 --- a/sdmc/source/main.c +++ b/sdmc/source/main.c @@ -27,10 +27,10 @@ void gspGpuInit() //set subscreen to blue u32 regData=0x01FF0000; - GSPGPU_WriteHWRegs(NULL, 0x202A04, (u8*)®Data, 4); + GSPGPU_WriteHWRegs(NULL, 0x202A04, ®Data, 4); //grab main left screen framebuffer addresses - GSPGPU_ReadHWRegs(NULL, 0x400468, (u8*)&topLeftFramebuffers, 8); + GSPGPU_ReadHWRegs(NULL, 0x400468, (u32*)&topLeftFramebuffers, 8); //convert PA to VA (assuming FB in VRAM) topLeftFramebuffers[0]+=0x7000000; @@ -73,10 +73,10 @@ void gspGpuExit() void swapBuffers() { u32 regData; - GSPGPU_ReadHWRegs(NULL, 0x400478, (u8*)®Data, 4); + GSPGPU_ReadHWRegs(NULL, 0x400478, ®Data, 4); regData^=1; currentBuffer=regData&1; - GSPGPU_WriteHWRegs(NULL, 0x400478, (u8*)®Data, 4); + GSPGPU_WriteHWRegs(NULL, 0x400478, ®Data, 4); } void copyBuffer() @@ -150,7 +150,7 @@ int main() swapBuffers(); copyBuffer(); u32 regData=PAD|0x01000000; - GSPGPU_WriteHWRegs(NULL, 0x202A04, (u8*)®Data, 4); + GSPGPU_WriteHWRegs(NULL, 0x202A04, ®Data, 4); svc_sleepThread(1000000000); }