From 3013015a0c7b830c9985e4d3a6b2bd66f15546e2 Mon Sep 17 00:00:00 2001 From: bunnei Date: Fri, 4 Jul 2014 23:46:16 -0400 Subject: mem_map: Updated interface to expose template functions to other modules. --- src/core/mem_map.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/core/mem_map.h') diff --git a/src/core/mem_map.h b/src/core/mem_map.h index d5899e4bb..70a8dedcf 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 +inline void Read(T &var, const u32 addr); + +template +inline void Write(u32 addr, const T data); + u8 Read8(const u32 addr); u16 Read16(const u32 addr); u32 Read32(const u32 addr); -- cgit v1.2.3 From 882dc0792904ec47d57a356a3c9e8fc1a240cc73 Mon Sep 17 00:00:00 2001 From: bunnei Date: Sat, 5 Jul 2014 10:12:27 -0400 Subject: Memory: Removed deprecated MapBlock_Shared function. --- src/core/mem_map.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/core/mem_map.h') diff --git a/src/core/mem_map.h b/src/core/mem_map.h index 70a8dedcf..12941f558 100644 --- a/src/core/mem_map.h +++ b/src/core/mem_map.h @@ -149,14 +149,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 -- cgit v1.2.3