Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Jan 22, 2024
1 parent 60cdb74 commit b06391f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions retail/cardenginei/arm9/source/cardDma.thumb.c
Original file line number Diff line number Diff line change
Expand Up @@ -658,11 +658,11 @@ u32 cardReadDma(u32 dma0, u8* dst0, u32 src0, u32 len0) {
&& dma <= 3
//&& func != NULL
&& len > 0
&& !(((int)dst) & 3)
&& !(((u32)dst) & ((ce9->valueBits & isSdk5) ? 31 : 3))
&& isNotTcm((u32)dst, len)
// check 512 bytes page alignement
&& !(((int)len) & 511)
&& !(((int)src) & 511)
&& !(len & 511)
&& !(src & 511)
) {
isDma = true;
if (ce9->patches->cardEndReadDmaRef || ce9->thumbPatches->cardEndReadDmaRef) {
Expand Down

0 comments on commit b06391f

Please sign in to comment.