notaz.gp2x.de
/
libpicofe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
arm_linux.S for cache ops and random fixes
[libpicofe.git]
/
gp2x
/
gp2x.c
diff --git
a/gp2x/gp2x.c
b/gp2x/gp2x.c
index
56fbf5c
..
0276038
100644
(file)
--- a/
gp2x/gp2x.c
+++ b/
gp2x/gp2x.c
@@
-36,6
+36,7
@@
#include "gp2x.h"
\r
#include "usbjoy.h"
\r
#include "../common/arm_utils.h"
\r
#include "gp2x.h"
\r
#include "usbjoy.h"
\r
#include "../common/arm_utils.h"
\r
+#include "../common/arm_linux.h"
\r
\r
volatile unsigned short *gp2x_memregs;
\r
//static
\r
\r
volatile unsigned short *gp2x_memregs;
\r
//static
\r
@@
-162,9
+163,7
@@
void gp2x_video_wait_vsync(void)
void gp2x_video_flush_cache(void)
\r
{
\r
// since we are using the mmu hack, we must flush the cache first
\r
void gp2x_video_flush_cache(void)
\r
{
\r
// since we are using the mmu hack, we must flush the cache first
\r
- // (the params are most likely wrong, but they seem to work somehow)
\r
- //flushcache(addr, addr + 320*240*2, 0);
\r
- flushcache(gp2x_screen, (char *)gp2x_screen + 320*240*2, 0);
\r
+ cache_flush_d_inval_i(gp2x_screen, (char *)gp2x_screen + 320*240*2);
\r
}
\r
\r
\r
}
\r
\r
\r