aboutsummaryrefslogtreecommitdiff
path: root/frontend/common/plat.h
diff options
context:
space:
mode:
authornotaz2012-08-19 22:39:49 +0300
committernotaz2012-10-12 00:05:08 +0300
commit9ee0fd5b333039b1140d90f935aa9299825f1e42 (patch)
tree5fa0d39647613e0e5b4ea3d582b91ecbc3e1ae91 /frontend/common/plat.h
parent50f9355a2338111d940ed408f52fe1defe4df23e (diff)
downloadpcsx_rearmed-9ee0fd5b333039b1140d90f935aa9299825f1e42.tar.gz
pcsx_rearmed-9ee0fd5b333039b1140d90f935aa9299825f1e42.tar.bz2
pcsx_rearmed-9ee0fd5b333039b1140d90f935aa9299825f1e42.zip
start mmap'ing vram, with hugetlb if possible
Diffstat (limited to 'frontend/common/plat.h')
-rw-r--r--frontend/common/plat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/frontend/common/plat.h b/frontend/common/plat.h
index 0a9fc0b..416f8ac 100644
--- a/frontend/common/plat.h
+++ b/frontend/common/plat.h
@@ -45,6 +45,10 @@ int plat_is_dir(const char *path);
int plat_wait_event(int *fds_hnds, int count, int timeout_ms);
void plat_sleep_ms(int ms);
+void *plat_mmap(unsigned long addr, size_t size, int need_exec);
+void *plat_mremap(void *ptr, size_t oldsize, size_t newsize);
+void plat_munmap(void *ptr, size_t size);
+
/* timers, to be used for time diff and must refer to the same clock */
unsigned int plat_get_ticks_ms(void);
unsigned int plat_get_ticks_us(void);