summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorGravatar Lioncash2018-08-24 21:43:32 -0400
committerGravatar Lioncash2018-08-24 21:50:39 -0400
commit43e0d865faa932b980580a79a87d5ea464e9545c (patch)
treeb4f06db70fe68a3edffc29e9373b9d98b8e35306 /src/core/hle/kernel
parentPort #4013 from Citra: "Init logging sooner so we dont miss some logs on star... (diff)
downloadyuzu-43e0d865faa932b980580a79a87d5ea464e9545c.tar.gz
yuzu-43e0d865faa932b980580a79a87d5ea464e9545c.tar.xz
yuzu-43e0d865faa932b980580a79a87d5ea464e9545c.zip
core: Namespace all code in the arm subdirectory under the Core namespace
Gets all of these types and interfaces out of the global namespace.
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/scheduler.cpp2
-rw-r--r--src/core/hle/kernel/scheduler.h6
-rw-r--r--src/core/hle/kernel/thread.cpp4
-rw-r--r--src/core/hle/kernel/thread.h2
4 files changed, 8 insertions, 6 deletions
diff --git a/src/core/hle/kernel/scheduler.cpp b/src/core/hle/kernel/scheduler.cpp
index e770b9103..69c812f16 100644
--- a/src/core/hle/kernel/scheduler.cpp
+++ b/src/core/hle/kernel/scheduler.cpp
@@ -17,7 +17,7 @@ namespace Kernel {
17 17
18std::mutex Scheduler::scheduler_mutex; 18std::mutex Scheduler::scheduler_mutex;
19 19
20Scheduler::Scheduler(ARM_Interface* cpu_core) : cpu_core(cpu_core) {} 20Scheduler::Scheduler(Core::ARM_Interface* cpu_core) : cpu_core(cpu_core) {}
21 21
22Scheduler::~Scheduler() { 22Scheduler::~Scheduler() {
23 for (auto& thread : thread_list) { 23 for (auto& thread : thread_list) {
diff --git a/src/core/hle/kernel/scheduler.h b/src/core/hle/kernel/scheduler.h
index 6a61ef64e..744990c9b 100644
--- a/src/core/hle/kernel/scheduler.h
+++ b/src/core/hle/kernel/scheduler.h
@@ -11,13 +11,15 @@
11#include "core/hle/kernel/object.h" 11#include "core/hle/kernel/object.h"
12#include "core/hle/kernel/thread.h" 12#include "core/hle/kernel/thread.h"
13 13
14namespace Core {
14class ARM_Interface; 15class ARM_Interface;
16}
15 17
16namespace Kernel { 18namespace Kernel {
17 19
18class Scheduler final { 20class Scheduler final {
19public: 21public:
20 explicit Scheduler(ARM_Interface* cpu_core); 22 explicit Scheduler(Core::ARM_Interface* cpu_core);
21 ~Scheduler(); 23 ~Scheduler();
22 24
23 /// Returns whether there are any threads that are ready to run. 25 /// Returns whether there are any threads that are ready to run.
@@ -70,7 +72,7 @@ private:
70 72
71 SharedPtr<Thread> current_thread = nullptr; 73 SharedPtr<Thread> current_thread = nullptr;
72 74
73 ARM_Interface* cpu_core; 75 Core::ARM_Interface* cpu_core;
74 76
75 static std::mutex scheduler_mutex; 77 static std::mutex scheduler_mutex;
76}; 78};
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index cf4f94822..4ffd8d5cc 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -283,9 +283,9 @@ static std::tuple<std::size_t, std::size_t, bool> GetFreeThreadLocalSlot(
283 * @param entry_point Address of entry point for execution 283 * @param entry_point Address of entry point for execution
284 * @param arg User argument for thread 284 * @param arg User argument for thread
285 */ 285 */
286static void ResetThreadContext(ARM_Interface::ThreadContext& context, VAddr stack_top, 286static void ResetThreadContext(Core::ARM_Interface::ThreadContext& context, VAddr stack_top,
287 VAddr entry_point, u64 arg) { 287 VAddr entry_point, u64 arg) {
288 memset(&context, 0, sizeof(ARM_Interface::ThreadContext)); 288 memset(&context, 0, sizeof(Core::ARM_Interface::ThreadContext));
289 289
290 context.cpu_registers[0] = arg; 290 context.cpu_registers[0] = arg;
291 context.pc = entry_point; 291 context.pc = entry_point;
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index adc804248..06edc296d 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -204,7 +204,7 @@ public:
204 return status == ThreadStatus::WaitSynchAll; 204 return status == ThreadStatus::WaitSynchAll;
205 } 205 }
206 206
207 ARM_Interface::ThreadContext context; 207 Core::ARM_Interface::ThreadContext context;
208 208
209 u32 thread_id; 209 u32 thread_id;
210 210