mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-06 15:18:05 -04:00
arm_linux.S for cache ops and random fixes
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@587 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
f11bad75ed
commit
095a240bd9
11 changed files with 50 additions and 35 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue