mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 19:05:45 +00:00
process_capability: Handle extended SVC range
12.x extended the range of SVC IDs, so we need to expand the range of bits that need to be tested. The upside of this is that we can eliminate a range check, given the whole range is used.
This commit is contained in:
parent
9bdff13849
commit
7737db89aa
2 changed files with 1 additions and 6 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue