2015-09-11 23:02:04 +02:00
|
|
|
#ifndef _3DS_UTILS_H
|
|
|
|
#define _3DS_UTILS_H
|
|
|
|
|
|
|
|
void ctr_invalidate_ICache(void);
|
|
|
|
void ctr_flush_DCache(void);
|
|
|
|
void ctr_flush_invalidate_cache(void);
|
|
|
|
|
2015-11-04 15:46:27 +01:00
|
|
|
extern __attribute((weak)) unsigned int __ctr_svchax;
|
|
|
|
|
2020-02-29 19:50:30 +01:00
|
|
|
void check_rosalina();
|
|
|
|
void ctr_clear_cache(void);
|
|
|
|
|
2015-11-04 15:46:27 +01:00
|
|
|
void wait_for_input();
|
|
|
|
#define DEBUG_HOLD() do{printf("%s@%s:%d.\n",__FUNCTION__, __FILE__, __LINE__);fflush(stdout);wait_for_input();}while(0)
|
|
|
|
#define DEBUG_VAR(X) printf( "%-20s: 0x%08X\n", #X, (u32)(X))
|
|
|
|
#define DEBUG_VAR64(X) printf( #X"\r\t\t\t\t : 0x%016llX\n", (u64)(X))
|
2015-09-11 23:02:04 +02:00
|
|
|
|
|
|
|
#endif // _3DS_UTILS_H
|