kernel: Improve accuracy of KResourceLimit emulation (#7221)

* core: Refactor resource limits

* svc: Implement SetResourceLimitLimitValues

* Also correct existing name and add missing error codes
This commit is contained in:
GPUCode
2023-12-04 13:31:06 +02:00
committed by GitHub
parent 875f5eaad5
commit 59df319f48
28 changed files with 421 additions and 301 deletions

View File

@@ -44,6 +44,8 @@ private:
}
};
class ResourceLimit;
class Timer final : public WaitObject {
public:
explicit Timer(KernelSystem& kernel);
@@ -96,6 +98,8 @@ public:
*/
void Signal(s64 cycles_late);
std::shared_ptr<ResourceLimit> resource_limit;
private:
ResetType reset_type; ///< The ResetType of this timer
@@ -123,6 +127,7 @@ private:
ar& signaled;
ar& name;
ar& callback_id;
ar& resource_limit;
}
};