summaryrefslogtreecommitdiff
path: root/3ds/3ds_utils.h
diff options
context:
space:
mode:
authorJustin Weiss2020-02-29 10:50:30 -0800
committerJustin Weiss2020-02-29 10:55:58 -0800
commit6a50b8a68d5a0595dc78c90f5d0969021beb7ea1 (patch)
tree79becdf758bdca2d5f34cc4b6de3f33400bf66c9 /3ds/3ds_utils.h
parent4d6846b4b72f0f5bbfeb684106cbf5fca8d4743a (diff)
downloadpicogpsp-6a50b8a68d5a0595dc78c90f5d0969021beb7ea1.tar.gz
picogpsp-6a50b8a68d5a0595dc78c90f5d0969021beb7ea1.tar.bz2
picogpsp-6a50b8a68d5a0595dc78c90f5d0969021beb7ea1.zip
[3DS] Fix dynarec prefetch aborts
Similar fix to https://github.com/libretro/pcsx_rearmed/pull/390. The Nintendo svcBackdoor can cause stack corruption if an interrupt happens during it, this uses Luma3DS/Rosalina's svcCustomBackdoor instead.
Diffstat (limited to '3ds/3ds_utils.h')
-rw-r--r--3ds/3ds_utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/3ds/3ds_utils.h b/3ds/3ds_utils.h
index b16f2dc..beeb002 100644
--- a/3ds/3ds_utils.h
+++ b/3ds/3ds_utils.h
@@ -7,6 +7,10 @@ void ctr_flush_invalidate_cache(void);
extern __attribute((weak)) unsigned int __ctr_svchax;
+bool has_rosalina;
+void check_rosalina();
+void ctr_clear_cache(void);
+
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))