summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMai M <mathew1800@gmail.com>2021-11-11 06:26:59 +0100
committerGitHub <noreply@github.com>2021-11-11 06:26:59 +0100
commit852858c2cb1e07afd467ffc009ef736ce01b4f8f (patch)
tree599b7cd5069692d49624870d9ebf65caf1407315
parentMerge pull request #7303 from Morph1984/swkbd-confirm-skip-textcheck (diff)
parentprogram_metadata: Add default ThreadInfo kernel capability (diff)
downloadyuzu-852858c2cb1e07afd467ffc009ef736ce01b4f8f.tar
yuzu-852858c2cb1e07afd467ffc009ef736ce01b4f8f.tar.gz
yuzu-852858c2cb1e07afd467ffc009ef736ce01b4f8f.tar.bz2
yuzu-852858c2cb1e07afd467ffc009ef736ce01b4f8f.tar.lz
yuzu-852858c2cb1e07afd467ffc009ef736ce01b4f8f.tar.xz
yuzu-852858c2cb1e07afd467ffc009ef736ce01b4f8f.tar.zst
yuzu-852858c2cb1e07afd467ffc009ef736ce01b4f8f.zip
-rw-r--r--src/core/file_sys/program_metadata.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/file_sys/program_metadata.cpp b/src/core/file_sys/program_metadata.cpp
index 35a53d36c..4e46c24cf 100644
--- a/src/core/file_sys/program_metadata.cpp
+++ b/src/core/file_sys/program_metadata.cpp
@@ -53,13 +53,16 @@ Loader::ResultStatus ProgramMetadata::Load(VirtualFile file) {
}
/*static*/ ProgramMetadata ProgramMetadata::GetDefault() {
+ // Allow use of cores 0~3 and thread priorities 1~63.
+ constexpr u32 default_thread_info_capability = 0x30007F7;
+
ProgramMetadata result;
result.LoadManual(
true /*is_64_bit*/, FileSys::ProgramAddressSpaceType::Is39Bit /*address_space*/,
0x2c /*main_thread_prio*/, 0 /*main_thread_core*/, 0x00100000 /*main_thread_stack_size*/,
0 /*title_id*/, 0xFFFFFFFFFFFFFFFF /*filesystem_permissions*/,
- 0x1FE00000 /*system_resource_size*/, {} /*capabilities*/);
+ 0x1FE00000 /*system_resource_size*/, {default_thread_info_capability} /*capabilities*/);
return result;
}