diff options
author | bunnei <bunneidev@gmail.com> | 2014-07-05 16:28:14 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-07-05 16:28:14 +0200 |
commit | 6084084a5d513544d8cb694554610b84270a5505 (patch) | |
tree | fe2d322dc00edc55786956e5c94588205ae332b6 /src/core/mem_map.h | |
parent | Merge pull request #26 from bunnei/romfs-archive (diff) | |
parent | SharedMemory: Updated MapSharedMemory to use an enum for permissions. (diff) | |
download | yuzu-6084084a5d513544d8cb694554610b84270a5505.tar yuzu-6084084a5d513544d8cb694554610b84270a5505.tar.gz yuzu-6084084a5d513544d8cb694554610b84270a5505.tar.bz2 yuzu-6084084a5d513544d8cb694554610b84270a5505.tar.lz yuzu-6084084a5d513544d8cb694554610b84270a5505.tar.xz yuzu-6084084a5d513544d8cb694554610b84270a5505.tar.zst yuzu-6084084a5d513544d8cb694554610b84270a5505.zip |
Diffstat (limited to 'src/core/mem_map.h')
-rw-r--r-- | src/core/mem_map.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/core/mem_map.h b/src/core/mem_map.h index d5899e4bb..12941f558 100644 --- a/src/core/mem_map.h +++ b/src/core/mem_map.h @@ -128,6 +128,12 @@ extern u8* g_exefs_code; ///< ExeFS:/.code is loaded here void Init(); void Shutdown(); +template <typename T> +inline void Read(T &var, const u32 addr); + +template <typename T> +inline void Write(u32 addr, const T data); + u8 Read8(const u32 addr); u16 Read16(const u32 addr); u32 Read32(const u32 addr); @@ -144,14 +150,6 @@ void WriteBlock(const u32 addr, const u8* data, const int size); u8* GetPointer(const u32 Address); /** - * Maps a block of memory in shared memory - * @param handle Handle to map memory block for - * @param addr Address to map memory block to - * @param permissions Memory map permissions - */ -u32 MapBlock_Shared(u32 handle, u32 addr,u32 permissions) ; - -/** * Maps a block of memory on the heap * @param size Size of block in bytes * @param operation Memory map operation type |