diff options
author | bunnei <bunneidev@gmail.com> | 2014-07-05 10:28:14 -0400 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-07-05 10:28:14 -0400 |
commit | 6084084a5d513544d8cb694554610b84270a5505 (patch) | |
tree | fe2d322dc00edc55786956e5c94588205ae332b6 /src/core/mem_map.h | |
parent | ad1adb2f9270cc48bfbfd8b12ad1dac162c48e39 (diff) | |
parent | 7ff92c36ed70e75a54d8a15a7806ab9be34b3168 (diff) |
Merge pull request #28 from bunnei/shared-memory
Shared memory - adds preliminary support for shared memory kernel objects and correct block mapping.
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 |