X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2Fgp2x.c;fp=gp2x%2Fgp2x.c;h=0276038b5ad96b54f7f699f1b540dabb497781bf;hb=095a240bd91548be4b9770d28d5d6c3e97637094;hp=56fbf5cde9a2343da28504fd8ef32a5aa2ac906b;hpb=f11bad75edc8966e9f84b040163cc86e830c46c6;p=libpicofe.git diff --git a/gp2x/gp2x.c b/gp2x/gp2x.c index 56fbf5c..0276038 100644 --- a/gp2x/gp2x.c +++ b/gp2x/gp2x.c @@ -36,6 +36,7 @@ #include "gp2x.h" #include "usbjoy.h" #include "../common/arm_utils.h" +#include "../common/arm_linux.h" volatile unsigned short *gp2x_memregs; //static @@ -162,9 +163,7 @@ void gp2x_video_wait_vsync(void) void gp2x_video_flush_cache(void) { // since we are using the mmu hack, we must flush the cache first - // (the params are most likely wrong, but they seem to work somehow) - //flushcache(addr, addr + 320*240*2, 0); - flushcache(gp2x_screen, (char *)gp2x_screen + 320*240*2, 0); + cache_flush_d_inval_i(gp2x_screen, (char *)gp2x_screen + 320*240*2); }