summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/process.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-09-15Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi1-2/+2
2018-08-29kernel: Eliminate kernel global stateLioncash1-13/+8
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-08-03kernel/process: Use std::array where applicableLioncash1-1/+2
2018-08-03kernel/process: Use accessors instead of class members for referencing segment arrayLioncash1-12/+32
Using member variables for referencing the segments array increases the size of the class in memory for little benefit. The same behavior can be achieved through the use of accessors that just return the relevant segment.
2018-08-03core/memory: Get rid of 3DS leftoversLioncash1-13/+4
Removes leftover code from citra that isn't needed.
2018-08-02kernel: Move object class to its own source filesLioncash1-1/+1
General moving to keep kernel object types separate from the direct kernel code. Also essentially a preliminary cleanup before eliminating global kernel state in the kernel code.
2018-03-14core: Move process creation out of global state.bunnei1-2/+1
2018-03-02Kernel: Store the program id in the Process class instead of the CodeSet class.Subv1-4/+5
There may be many CodeSets per Process, so it's wasteful and overcomplicated to store the program id in each of them.
2018-01-16Added more svcGetInfo pairsDavid Marcec1-0/+2
2018-01-10Threads: Added enum values for the Switch's 4 cpu cores and implemented svcGetInfo(AllowedCpuIdBitmask)Subv1-0/+4
2018-01-01svc: Implement svcExitProcess.bunnei1-2/+11
2017-12-31svc: Implement svcUnmapMemory.bunnei1-0/+3
2017-12-29kernel: Various 64-bit fixes in memory/process/threadbunnei1-3/+3
2017-12-29process: Add method to mirror a memory region.bunnei1-0/+2
2017-09-30nso: Refactor and allocate .bss section.bunnei1-4/+5
2017-09-30process: Support loading multiple codesets.bunnei1-1/+7
2017-05-10Kernel: Map special regions according to ExHeaderYuri Kunde Schlesner1-1/+1
This replaces the hardcoded VRAM/DSP mappings with ones made based on the ExHeader ARM11 Kernel caps list. While this has no visible effect for most applications (since they use a standard set of mappings) it does improve support for system modules and n3DS exclusives.
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot1-3/+0
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot1-18/+32
2016-05-07Kernel/Threading: Warn when a thread can be scheduled in the Syscore (Core 1).Subv1-0/+2
We do not currently implement any cores other than the AppCore (Core 0).
2016-05-07Kernel/Threads: Dynamically allocate the TLS region for threads in the BASE region of the linear heap.Subv1-2/+5
Each thread gets a 0x200-byte area from the 0x1000-sized page, when all 8 thread slots in a single page are used up, the kernel allocates a new page to hold another 8 entries. This is consistent with what the real kernel does.
2016-03-06Memory: Do correct Phys->Virt address translation for non-APP linheapYuri Kunde Schlesner1-0/+1
2015-08-16Kernel: Implement svcGetProcessInfo in a basic wayYuri Kunde Schlesner1-0/+2
This also adds some basic memory usage accounting. These two types are used by Super Smash Bros. during startup.
2015-08-16Kernel: Add more infrastructure to support different memory layoutsYuri Kunde Schlesner1-1/+5
This adds some structures necessary to support multiple memory regions in the future. It also adds support for different system memory types and the new linear heap mapping at 0x30000000.
2015-08-16Process: Store kernel compatibility version during loadingYuri Kunde Schlesner1-0/+2
2015-08-16Kernel: Properly implement ControlMemory FREE and COMMITYuri Kunde Schlesner1-5/+26
2015-07-12Core: Fix applet includes using iwyu.Emmanuel Gil Peyrot1-0/+1
2015-07-12Core: Properly configure address space when loading a binaryYuri Kunde Schlesner1-7/+36
The code now properly configures the process image to match the loaded binary segments (code, rodata, data) instead of just blindly allocating a large chunk of dummy memory.
2015-06-28Core: Cleanup file_sys includes.Emmanuel Gil Peyrot1-1/+2
2015-05-15Core/ResourceLimits: Implemented the basic structure of ResourceLimits.Subv1-0/+4
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.
2015-05-12Core/Memory: Add TLS support for creating up to 300 threadsSubv1-0/+3
2015-05-12fixup!Subv1-6/+0
2015-05-11Core/HLE: Implemented the SVCs GetProcessId and GetProcessIdOfThreadSubv1-0/+11
2015-05-09Process: Rename StaticAddressMapping => AddressMappingYuri Kunde Schlesner1-2/+2
2015-05-09Process: Add more documentation to the class membersYuri Kunde Schlesner1-2/+16
2015-05-09Process: Use BitField to store process flagsYuri Kunde Schlesner1-6/+20
2015-05-09Process: Support parsing of exheader kernel capsYuri Kunde Schlesner1-1/+2
2015-05-09Kernel: Introduce skeleton Process class to hold process dataYuri Kunde Schlesner1-0/+61