yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

Merge pull request #6153 from lioncash/svcrange

process_capability: Handle extended SVC range
This commit is contained in:
bunnei 2021-04-07 13:01:40 -07:00 committed by GitHub
commit d490f6dcf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View File

@ -281,11 +281,6 @@ ResultCode ProcessCapabilities::HandleSyscallFlags(u32& set_svc_bits, u32 flags)
continue; continue;
} }
if (svc_number >= svc_capabilities.size()) {
LOG_ERROR(Kernel, "Process svc capability is out of range! svc_number={}", svc_number);
return ResultOutOfRange;
}
svc_capabilities[svc_number] = true; svc_capabilities[svc_number] = true;
} }

View File

@ -68,7 +68,7 @@ enum class ProgramType {
class ProcessCapabilities { class ProcessCapabilities {
public: public:
using InterruptCapabilities = std::bitset<1024>; using InterruptCapabilities = std::bitset<1024>;
using SyscallCapabilities = std::bitset<128>; using SyscallCapabilities = std::bitset<192>;
ProcessCapabilities() = default; ProcessCapabilities() = default;
ProcessCapabilities(const ProcessCapabilities&) = delete; ProcessCapabilities(const ProcessCapabilities&) = delete;