From d05294f4bf4703dfbd79b4d82934b2c0814b0944 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Sun, 2 Jan 2022 18:41:40 -0700 Subject: [PATCH] Revert "Asynchrously clear MEP" to fix misdetected X button presses This reverts commit 46f32cea1e8d486329d7f13fcb0c7a3aa642572a. --- arm9/source/ramd.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/arm9/source/ramd.c b/arm9/source/ramd.c index 545646f..c87bbcd 100644 --- a/arm9/source/ramd.c +++ b/arm9/source/ramd.c @@ -4,12 +4,6 @@ #include #include "tonccpy.h" -static inline void dmaFillAsynch(const void* src, void* dest, u32 size) { - DMA_SRC(3) = (u32)src; - DMA_DEST(3) = (u32)dest; - DMA_CR(3) = DMA_COPY_WORDS | DMA_SRC_FIX | (size>>2); -} - #define SECTOR_SIZE 512 const static u8 bootSector[] = { @@ -27,9 +21,8 @@ bool ramd_startup() { if(isDSiMode() || REG_SCFG_EXT != 0) { ramdLoc = (u8*)malloc(0x4800 * SECTOR_SIZE); } else { - u32 byte = 0; ramdLoc = (u8*)malloc(0x8 * SECTOR_SIZE); - dmaFillAsynch((void*)&byte, ramdLocMep, (ramdSectors - 0x8) * SECTOR_SIZE); // Fill MEP with 00 to avoid displaying weird files + toncset(ramdLocMep, 0, (ramdSectors - 0x8) * SECTOR_SIZE); // Fill MEP with 00 to avoid displaying weird files } tonccpy(ramdLoc, bootSector, sizeof(bootSector));