aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authornotaz2012-08-03 00:43:56 +0300
committernotaz2012-08-03 01:45:11 +0300
commit5b9f1b9e4aa51af5712cf1d90552ace57d9f486b (patch)
treeabc9b1f815eaf72c83313b4b35e4619f5891de51 /frontend
parent4ea086f6049c3f2c286f1a4e1e23b5763629067a (diff)
downloadpcsx_rearmed-5b9f1b9e4aa51af5712cf1d90552ace57d9f486b.tar.gz
pcsx_rearmed-5b9f1b9e4aa51af5712cf1d90552ace57d9f486b.tar.bz2
pcsx_rearmed-5b9f1b9e4aa51af5712cf1d90552ace57d9f486b.zip
frontend/pollux: wiz: move tables to upper memory to free some RAM
Diffstat (limited to 'frontend')
-rw-r--r--frontend/pl_gun_ts.h1
-rw-r--r--frontend/plat_pollux.c16
2 files changed, 17 insertions, 0 deletions
diff --git a/frontend/pl_gun_ts.h b/frontend/pl_gun_ts.h
index 4e15f00..4e3d195 100644
--- a/frontend/pl_gun_ts.h
+++ b/frontend/pl_gun_ts.h
@@ -13,5 +13,6 @@ int pl_gun_ts_get_fd(struct tsdev *ts);
#define pl_gun_ts_init() NULL
#define pl_gun_ts_update(...) do {} while (0)
+#define pl_set_gun_rect(...) do {} while (0)
#endif
diff --git a/frontend/plat_pollux.c b/frontend/plat_pollux.c
index 589049c..1dafb7c 100644
--- a/frontend/plat_pollux.c
+++ b/frontend/plat_pollux.c
@@ -653,6 +653,22 @@ void plat_finish(void)
close(memdev);
}
+/* WIZ RAM lack workaround */
+void *memtab_mmap(void *addr, size_t size)
+{
+ void *ret;
+
+ if (gp2x_dev_id != GP2X_DEV_WIZ)
+ return mmap(addr, size, PROT_READ | PROT_WRITE,
+ MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0);
+
+ ret = mmap(addr, size, PROT_READ | PROT_WRITE,
+ MAP_SHARED | MAP_FIXED, memdev, 0x03000000);
+ if (ret != MAP_FAILED)
+ warm_change_cb_range(WCB_C_BIT | WCB_B_BIT, 1, ret, size);
+ return ret;
+}
+
/* Caanoo stuff, perhaps move later */
static const char * const caanoo_keys[KEY_MAX + 1] = {
[0 ... KEY_MAX] = NULL,