diff options
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
| -rw-r--r-- | src/core/hle/kernel/kernel.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index e441c5bc6..1c2290651 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp | |||
| @@ -112,7 +112,7 @@ struct KernelCore::Impl { | |||
| 112 | 112 | ||
| 113 | void Shutdown() { | 113 | void Shutdown() { |
| 114 | next_object_id = 0; | 114 | next_object_id = 0; |
| 115 | next_process_id = 10; | 115 | next_process_id = Process::ProcessIDMin; |
| 116 | next_thread_id = 1; | 116 | next_thread_id = 1; |
| 117 | 117 | ||
| 118 | process_list.clear(); | 118 | process_list.clear(); |
| @@ -153,10 +153,8 @@ struct KernelCore::Impl { | |||
| 153 | } | 153 | } |
| 154 | 154 | ||
| 155 | std::atomic<u32> next_object_id{0}; | 155 | std::atomic<u32> next_object_id{0}; |
| 156 | // TODO(Subv): Start the process ids from 10 for now, as lower PIDs are | 156 | std::atomic<u64> next_process_id{Process::ProcessIDMin}; |
| 157 | // reserved for low-level services | 157 | std::atomic<u64> next_thread_id{1}; |
| 158 | std::atomic<u32> next_process_id{10}; | ||
| 159 | std::atomic<u32> next_thread_id{1}; | ||
| 160 | 158 | ||
| 161 | // Lists all processes that exist in the current session. | 159 | // Lists all processes that exist in the current session. |
| 162 | std::vector<SharedPtr<Process>> process_list; | 160 | std::vector<SharedPtr<Process>> process_list; |
| @@ -242,11 +240,11 @@ u32 KernelCore::CreateNewObjectID() { | |||
| 242 | return impl->next_object_id++; | 240 | return impl->next_object_id++; |
| 243 | } | 241 | } |
| 244 | 242 | ||
| 245 | u32 KernelCore::CreateNewThreadID() { | 243 | u64 KernelCore::CreateNewThreadID() { |
| 246 | return impl->next_thread_id++; | 244 | return impl->next_thread_id++; |
| 247 | } | 245 | } |
| 248 | 246 | ||
| 249 | u32 KernelCore::CreateNewProcessID() { | 247 | u64 KernelCore::CreateNewProcessID() { |
| 250 | return impl->next_process_id++; | 248 | return impl->next_process_id++; |
| 251 | } | 249 | } |
| 252 | 250 | ||