summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/resource_limit.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* kernel: Rewrite resource limit to be more accurateChloe Marcec2021-01-301-73/+0
| | | | Matches closer to hardware
* core: Remove unnecessary enum casts in log callsLioncash2020-12-081-2/+2
| | | | | Follows the video core PR. fmt doesn't require casts for enum classes anymore, so we can remove quite a few casts.
* Revert "core: Fix clang build"bunnei2020-10-211-2/+2
|
* core: Fix clang buildLioncash2020-10-181-2/+2
| | | | | | | Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795
* kernel: ResourceLimit::Reserve remove useless while loopDavid Marcec2020-05-291-5/+1
| | | | Timeout is a u64, it will always be >= 0
* kernel: Don't fail silentlyDavid Marcec2020-04-291-0/+2
|
* kernel: resource_limit: Improvements to implementation.bunnei2020-04-171-8/+42
|
* kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. (#3154)bunnei2019-11-251-2/+2
| | | | | | * kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. - See https://github.com/citra-emu/citra/pull/4710 for details.
* kernel/resource_limit: Remove the name member from resource limitsLioncash2019-04-011-5/+2
| | | | | | | | | | | | This doesn't really provide any benefit to the resource limit interface. There's no way for callers to any of the service functions for resource limits to provide a custom name, so all created instances of resource limits other than the system resource limit would have a name of "Unknown". The system resource limit itself is already trivially identifiable from its limit values, so there's no real need to take up space in the object to identify one object meaningfully out of N total objects.
* kernel/resource_limit: Clean up interfaceLioncash2018-11-201-54/+21
| | | | | | | | | | | | | Cleans out the citra/3DS-specific implementation details that don't apply to the Switch. Sets the stage for implementing ResourceLimit instances properly. While we're at it, remove the erroneous checks within CreateThread() and SetThreadPriority(). While these are indeed checked in some capacity, they are not checked via a ResourceLimit instance. In the process of moving out Citra-specifics, this also replaces the system ResourceLimit instance's values with ones from the Switch.
* kernel: Eliminate kernel global stateLioncash2018-08-291-81/+4
| | | | | | | | | | | | | | | | | | | | | | As means to pave the way for getting rid of global state within core, This eliminates kernel global state by removing all globals. Instead this introduces a KernelCore class which acts as a kernel instance. This instance lives in the System class, which keeps its lifetime contained to the lifetime of the System class. This also forces the kernel types to actually interact with the main kernel instance itself instead of having transient kernel state placed all over several translation units, keeping everything together. It also has a nice consequence of making dependencies much more explicit. This also makes our initialization a tad bit more correct. Previously we were creating a kernel process before the actual kernel was initialized, which doesn't really make much sense. The KernelCore class itself follows the PImpl idiom, which allows keeping all the implementation details sealed away from everything else, which forces the use of the exposed API and allows us to avoid any unnecessary inclusions within the main kernel header.
* Rename logging macro back to LOG_*James Rowe2018-07-031-3/+3
|
* kernel: Migrate logging macros to fmt-compatible onesLioncash2018-04-261-3/+3
|
* resource_limit: Make ResourceTypes an enum classLioncash2018-04-211-23/+23
| | | | Prevents enum identifiers from leaking into the surrounding scope.
* Format: Run the new clang format on everythingJames Rowe2018-01-211-1/+1
|
* Fixed type conversion ambiguityHuw Pascoe2017-09-301-1/+1
|
* Kernel: Move HandleTable to a separate fileYuri Kunde Schlesner2017-05-301-0/+1
|
* Thread: Added priority range checking to svcSetThreadPriority and removed priority clamping code from Thread::SetPriority.Subv2017-01-111-0/+2
|
* Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner2016-09-211-1/+1
|
* Remove empty newlines in #include blocks.Emmanuel Gil Peyrot2016-09-211-3/+1
| | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
* Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner2016-09-191-6/+3
|
* Sources: Run clang-format on everything.Emmanuel Gil Peyrot2016-09-181-57/+57
|
* Memory: Move address type conversion routines to memory.cpp/hYuri Kunde Schlesner2015-08-161-1/+0
| | | | | These helpers aren't really part of the kernel, and mem_map.cpp/h is going to be moved there next.
* Core/ResourceLimits: Implemented the basic structure of ResourceLimits.Subv2015-05-151-0/+157
Implemented svcs GetResourceLimit, GetResourceLimitCurrentValues and GetResourceLimitLimitValues. Note that the resource limits do not currently keep track of used objects, since we have no way to distinguish between an object created by the application, and an object created by some HLE module once we're inside Kernel::T::Create.