summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/resource_limit.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-11-20kernel/resource_limit: Clean up interfaceLioncash1-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.
2018-08-29kernel: Eliminate kernel global stateLioncash1-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.
2018-07-03Rename logging macro back to LOG_*James Rowe1-3/+3
2018-04-26kernel: Migrate logging macros to fmt-compatible onesLioncash1-3/+3
2018-04-21resource_limit: Make ResourceTypes an enum classLioncash1-23/+23
Prevents enum identifiers from leaking into the surrounding scope.
2018-01-21Format: Run the new clang format on everythingJames Rowe1-1/+1
2017-09-30Fixed type conversion ambiguityHuw Pascoe1-1/+1
2017-05-30Kernel: Move HandleTable to a separate fileYuri Kunde Schlesner1-0/+1
2017-01-11Thread: Added priority range checking to svcSetThreadPriority and removed priority clamping code from Thread::SetPriority.Subv1-0/+2
2016-09-21Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner1-1/+1
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot1-3/+1
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-19Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner1-6/+3
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot1-57/+57
2015-08-16Memory: Move address type conversion routines to memory.cpp/hYuri Kunde Schlesner1-1/+0
These helpers aren't really part of the kernel, and mem_map.cpp/h is going to be moved there next.
2015-05-15Core/ResourceLimits: Implemented the basic structure of ResourceLimits.Subv1-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.