diff options
author | Revo <projectrevotpp@hotmail.com> | 2021-01-08 19:33:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-08 19:33:39 -0500 |
commit | 3289261e5aaddcd67f72513de06a72a379854d5c (patch) | |
tree | 3af221138ff7d6e8ad56a4b95a6255a0edc3812b /arm9/lib/include/syscall.h | |
parent | ee1f12ce06e865f47511ba200029e0afaafa4255 (diff) | |
parent | 1e268426533b6bb78b86e35577c72cd4bb5cbb4c (diff) |
Merge pull request #312 from red031000/master
decompile CTRDG_common
Diffstat (limited to 'arm9/lib/include/syscall.h')
-rw-r--r-- | arm9/lib/include/syscall.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arm9/lib/include/syscall.h b/arm9/lib/include/syscall.h index 427134a7..8e7962df 100644 --- a/arm9/lib/include/syscall.h +++ b/arm9/lib/include/syscall.h @@ -1,6 +1,19 @@ #ifndef POKEDIAMOND_ARM9_SYSCALL_H #define POKEDIAMOND_ARM9_SYSCALL_H +#include "consts.h" +#include "MI_dma.h" + +void SVC_CpuSet(const void *srcp, void *destp, u32 dmaCntData); + +#define SVC_CpuClear( data, destp, size, bit ) \ +do{ \ + vu##bit tmp = (vu##bit )(data); \ + SVC_CpuSet((u8 *)&(tmp), (u8 *)(destp), ( \ + MI_DMA_SRC_FIX | \ + MI_DMA_##bit##BIT_BUS | ((size)/((bit)/8) & 0x1fffff))); \ +} while(0) + void SVC_WaitByLoop(u32 ct); #endif //POKEDIAMOND_ARM9_SYSCALL_H |