summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-03-23 05:50:06 +0100
committerbunnei <bunneidev@gmail.com>2015-04-10 01:04:19 +0200
commite08f55b1a7a6136377d3de1dc8f7f9664f5524d6 (patch)
tree4e83c23cacf91fd91fc68b960bf10c6e6a4cb04a /src
parentMerge pull request #690 from Zaneo/sharedmemory (diff)
downloadyuzu-e08f55b1a7a6136377d3de1dc8f7f9664f5524d6.tar
yuzu-e08f55b1a7a6136377d3de1dc8f7f9664f5524d6.tar.gz
yuzu-e08f55b1a7a6136377d3de1dc8f7f9664f5524d6.tar.bz2
yuzu-e08f55b1a7a6136377d3de1dc8f7f9664f5524d6.tar.lz
yuzu-e08f55b1a7a6136377d3de1dc8f7f9664f5524d6.tar.xz
yuzu-e08f55b1a7a6136377d3de1dc8f7f9664f5524d6.tar.zst
yuzu-e08f55b1a7a6136377d3de1dc8f7f9664f5524d6.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/kernel.cpp2
-rw-r--r--src/core/hle/kernel/thread.h7
2 files changed, 4 insertions, 5 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 498b2ec98..6261b82b6 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -154,7 +154,7 @@ void Shutdown() {
*/
bool LoadExec(u32 entry_point) {
// 0x30 is the typical main thread priority I've seen used so far
- g_main_thread = Kernel::SetupMainThread(Kernel::DEFAULT_STACK_SIZE, entry_point, 0x30);
+ g_main_thread = Kernel::SetupMainThread(Kernel::DEFAULT_STACK_SIZE, entry_point, THREADPRIO_DEFAULT);
return true;
}
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index cfd073a70..bde4eecf2 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -18,10 +18,9 @@
#include "core/hle/result.h"
enum ThreadPriority {
- THREADPRIO_HIGHEST = 0, ///< Highest thread priority
- THREADPRIO_DEFAULT = 16, ///< Default thread priority for userland apps
- THREADPRIO_LOW = 31, ///< Low range of thread priority for userland apps
- THREADPRIO_LOWEST = 63, ///< Thread priority max checked by svcCreateThread
+ THREADPRIO_HIGHEST = 0x0, ///< Highest thread priority
+ THREADPRIO_DEFAULT = 0x30, ///< Default thread priority for userland apps
+ THREADPRIO_LOWEST = 0x3F, ///< Lowest thread priority
};
enum ThreadProcessorId {