diff options
| author | 2015-05-12 22:38:29 -0300 | |
|---|---|---|
| committer | 2015-05-15 00:04:38 -0300 | |
| commit | 7ada357b2d12cf616672425a8961804b865354d6 (patch) | |
| tree | 983003c1efc0950605eca3aa7d135b7c8fe9edcf /src/core/hle | |
| parent | Memmap: Remove unused declarations (diff) | |
| download | yuzu-7ada357b2d12cf616672425a8961804b865354d6.tar.gz yuzu-7ada357b2d12cf616672425a8961804b865354d6.tar.xz yuzu-7ada357b2d12cf616672425a8961804b865354d6.zip | |
Memmap: Re-organize memory function in two files
memory.cpp/h contains definitions related to acessing memory and
configuring the address space
mem_map.cpp/h contains higher-level definitions related to configuring
the address space accoording to the kernel and allocating memory.
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/config_mem.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/function_wrappers.h | 6 | ||||
| -rw-r--r-- | src/core/hle/kernel/address_arbiter.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/process.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/session.h | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/shared_memory.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/thread.h | 1 | ||||
| -rw-r--r-- | src/core/hle/service/gsp_gpu.cpp | 1 | ||||
| -rw-r--r-- | src/core/hle/shared_page.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/svc.cpp | 2 |
11 files changed, 12 insertions, 12 deletions
diff --git a/src/core/hle/config_mem.cpp b/src/core/hle/config_mem.cpp index 35dc9cf58..2f7cc7ee5 100644 --- a/src/core/hle/config_mem.cpp +++ b/src/core/hle/config_mem.cpp | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | #include "common/common_funcs.h" | 9 | #include "common/common_funcs.h" |
| 10 | 10 | ||
| 11 | #include "core/core.h" | 11 | #include "core/core.h" |
| 12 | #include "core/mem_map.h" | 12 | #include "core/memory.h" |
| 13 | #include "core/hle/config_mem.h" | 13 | #include "core/hle/config_mem.h" |
| 14 | 14 | ||
| 15 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 15 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index be2626eef..eb52c8fb1 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 8 | 8 | ||
| 9 | #include "core/arm/arm_interface.h" | 9 | #include "core/arm/arm_interface.h" |
| 10 | #include "core/mem_map.h" | 10 | #include "core/memory.h" |
| 11 | #include "core/hle/hle.h" | 11 | #include "core/hle/hle.h" |
| 12 | 12 | ||
| 13 | namespace HLE { | 13 | namespace HLE { |
| @@ -109,7 +109,7 @@ template<ResultCode func(s64*, u32, void*, s32)> void Wrap(){ | |||
| 109 | 109 | ||
| 110 | template<ResultCode func(u32*, const char*)> void Wrap() { | 110 | template<ResultCode func(u32*, const char*)> void Wrap() { |
| 111 | u32 param_1 = 0; | 111 | u32 param_1 = 0; |
| 112 | u32 retval = func(¶m_1, Memory::GetCharPointer(PARAM(1))).raw; | 112 | u32 retval = func(¶m_1, (char*)Memory::GetPointer(PARAM(1))).raw; |
| 113 | Core::g_app_core->SetReg(1, param_1); | 113 | Core::g_app_core->SetReg(1, param_1); |
| 114 | FuncReturn(retval); | 114 | FuncReturn(retval); |
| 115 | } | 115 | } |
| @@ -163,7 +163,7 @@ template<void func(s64)> void Wrap() { | |||
| 163 | } | 163 | } |
| 164 | 164 | ||
| 165 | template<void func(const char*)> void Wrap() { | 165 | template<void func(const char*)> void Wrap() { |
| 166 | func(Memory::GetCharPointer(PARAM(0))); | 166 | func((char*)Memory::GetPointer(PARAM(0))); |
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | #undef PARAM | 169 | #undef PARAM |
diff --git a/src/core/hle/kernel/address_arbiter.cpp b/src/core/hle/kernel/address_arbiter.cpp index 9d7f6b280..a1221766e 100644 --- a/src/core/hle/kernel/address_arbiter.cpp +++ b/src/core/hle/kernel/address_arbiter.cpp | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | #include "common/common_types.h" | 5 | #include "common/common_types.h" |
| 6 | #include "common/logging/log.h" | 6 | #include "common/logging/log.h" |
| 7 | 7 | ||
| 8 | #include "core/mem_map.h" | 8 | #include "core/memory.h" |
| 9 | 9 | ||
| 10 | #include "core/hle/hle.h" | 10 | #include "core/hle/hle.h" |
| 11 | #include "core/hle/kernel/address_arbiter.h" | 11 | #include "core/hle/kernel/address_arbiter.h" |
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index 1e439db9e..0cdfa58d7 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | 8 | ||
| 9 | #include "core/hle/kernel/process.h" | 9 | #include "core/hle/kernel/process.h" |
| 10 | #include "core/hle/kernel/thread.h" | 10 | #include "core/hle/kernel/thread.h" |
| 11 | #include "core/mem_map.h" | 11 | #include "core/memory.h" |
| 12 | 12 | ||
| 13 | namespace Kernel { | 13 | namespace Kernel { |
| 14 | 14 | ||
diff --git a/src/core/hle/kernel/session.h b/src/core/hle/kernel/session.h index 8c3886ffd..54a062971 100644 --- a/src/core/hle/kernel/session.h +++ b/src/core/hle/kernel/session.h | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | #include "core/hle/kernel/kernel.h" | 7 | #include "core/hle/kernel/kernel.h" |
| 8 | #include "core/hle/kernel/thread.h" | 8 | #include "core/hle/kernel/thread.h" |
| 9 | #include "core/mem_map.h" | 9 | #include "core/memory.h" |
| 10 | 10 | ||
| 11 | namespace Kernel { | 11 | namespace Kernel { |
| 12 | 12 | ||
diff --git a/src/core/hle/kernel/shared_memory.cpp b/src/core/hle/kernel/shared_memory.cpp index 0c59f4876..4137683b5 100644 --- a/src/core/hle/kernel/shared_memory.cpp +++ b/src/core/hle/kernel/shared_memory.cpp | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | #include "common/logging/log.h" | 7 | #include "common/logging/log.h" |
| 8 | 8 | ||
| 9 | #include "core/mem_map.h" | 9 | #include "core/memory.h" |
| 10 | #include "core/hle/kernel/shared_memory.h" | 10 | #include "core/hle/kernel/shared_memory.h" |
| 11 | 11 | ||
| 12 | namespace Kernel { | 12 | namespace Kernel { |
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 5bcd03ff3..a5f1904d7 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -21,7 +21,7 @@ | |||
| 21 | #include "core/hle/kernel/thread.h" | 21 | #include "core/hle/kernel/thread.h" |
| 22 | #include "core/hle/kernel/mutex.h" | 22 | #include "core/hle/kernel/mutex.h" |
| 23 | #include "core/hle/result.h" | 23 | #include "core/hle/result.h" |
| 24 | #include "core/mem_map.h" | 24 | #include "core/memory.h" |
| 25 | 25 | ||
| 26 | namespace Kernel { | 26 | namespace Kernel { |
| 27 | 27 | ||
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index 6b329c12a..389928178 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -12,7 +12,6 @@ | |||
| 12 | #include "common/common_types.h" | 12 | #include "common/common_types.h" |
| 13 | 13 | ||
| 14 | #include "core/core.h" | 14 | #include "core/core.h" |
| 15 | #include "core/mem_map.h" | ||
| 16 | 15 | ||
| 17 | #include "core/hle/kernel/kernel.h" | 16 | #include "core/hle/kernel/kernel.h" |
| 18 | #include "core/hle/result.h" | 17 | #include "core/hle/result.h" |
diff --git a/src/core/hle/service/gsp_gpu.cpp b/src/core/hle/service/gsp_gpu.cpp index c6252a03b..c11c5faba 100644 --- a/src/core/hle/service/gsp_gpu.cpp +++ b/src/core/hle/service/gsp_gpu.cpp | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | #include "common/bit_field.h" | 5 | #include "common/bit_field.h" |
| 6 | 6 | ||
| 7 | #include "core/mem_map.h" | 7 | #include "core/mem_map.h" |
| 8 | #include "core/memory.h" | ||
| 8 | #include "core/hle/kernel/event.h" | 9 | #include "core/hle/kernel/event.h" |
| 9 | #include "core/hle/kernel/shared_memory.h" | 10 | #include "core/hle/kernel/shared_memory.h" |
| 10 | #include "core/hle/result.h" | 11 | #include "core/hle/result.h" |
diff --git a/src/core/hle/shared_page.cpp b/src/core/hle/shared_page.cpp index 4f227a370..9de832158 100644 --- a/src/core/hle/shared_page.cpp +++ b/src/core/hle/shared_page.cpp | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | #include "common/common_funcs.h" | 8 | #include "common/common_funcs.h" |
| 9 | 9 | ||
| 10 | #include "core/core.h" | 10 | #include "core/core.h" |
| 11 | #include "core/mem_map.h" | 11 | #include "core/memory.h" |
| 12 | #include "core/hle/config_mem.h" | 12 | #include "core/hle/config_mem.h" |
| 13 | #include "core/hle/shared_page.h" | 13 | #include "core/hle/shared_page.h" |
| 14 | 14 | ||
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index e8159fbdb..9bf886256 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp | |||
| @@ -315,7 +315,7 @@ static ResultCode GetResourceLimitCurrentValues(s64* values, Handle resource_lim | |||
| 315 | s32 name_count) { | 315 | s32 name_count) { |
| 316 | LOG_ERROR(Kernel_SVC, "(UNIMPLEMENTED) called resource_limit=%08X, names=%p, name_count=%d", | 316 | LOG_ERROR(Kernel_SVC, "(UNIMPLEMENTED) called resource_limit=%08X, names=%p, name_count=%d", |
| 317 | resource_limit, names, name_count); | 317 | resource_limit, names, name_count); |
| 318 | Memory::Write32(Core::g_app_core->GetReg(0), 0); // Normmatt: Set used memory to 0 for now | 318 | values[0] = 0; // Normmatt: Set used memory to 0 for now |
| 319 | return RESULT_SUCCESS; | 319 | return RESULT_SUCCESS; |
| 320 | } | 320 | } |
| 321 | 321 | ||