diff options
| author | 2021-01-01 01:04:30 -0800 | |
|---|---|---|
| committer | 2021-01-28 21:42:25 -0800 | |
| commit | 0530292b9768637aa6e2875e931c1066af4aa80e (patch) | |
| tree | 30236fc9d763731f06a8f4397a88200bb31c0318 /src/core/hle/kernel/svc.cpp | |
| parent | hle: kernel: Move single core "phantom mode" out of KThread. (diff) | |
| download | yuzu-0530292b9768637aa6e2875e931c1066af4aa80e.tar.gz yuzu-0530292b9768637aa6e2875e931c1066af4aa80e.tar.xz yuzu-0530292b9768637aa6e2875e931c1066af4aa80e.zip | |
hle: kernel: KThread: Fix ThreadType definition.
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 3609346d6..711b9d520 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -1488,10 +1488,9 @@ static ResultCode CreateThread(Core::System& system, Handle* out_handle, VAddr e | |||
| 1488 | 1488 | ||
| 1489 | ASSERT(kernel.CurrentProcess()->GetResourceLimit()->Reserve(ResourceType::Threads, 1)); | 1489 | ASSERT(kernel.CurrentProcess()->GetResourceLimit()->Reserve(ResourceType::Threads, 1)); |
| 1490 | 1490 | ||
| 1491 | ThreadType type = THREADTYPE_USER; | ||
| 1492 | CASCADE_RESULT(std::shared_ptr<KThread> thread, | 1491 | CASCADE_RESULT(std::shared_ptr<KThread> thread, |
| 1493 | KThread::Create(system, type, "", entry_point, priority, arg, processor_id, | 1492 | KThread::Create(system, ThreadType::User, "", entry_point, priority, arg, |
| 1494 | stack_top, current_process)); | 1493 | processor_id, stack_top, current_process)); |
| 1495 | 1494 | ||
| 1496 | const auto new_thread_handle = current_process->GetHandleTable().Create(thread); | 1495 | const auto new_thread_handle = current_process->GetHandleTable().Create(thread); |
| 1497 | if (new_thread_handle.Failed()) { | 1496 | if (new_thread_handle.Failed()) { |