arm_linux.S for cache ops and random fixes

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@587 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2008-09-14 19:41:41 +00:00
parent 1cfc5cc4ce
commit 16b0afd029
12 changed files with 51 additions and 36 deletions

View file

@ -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);
}