- Nov 21, 2018
-
-
Lioncash authored
These don't depend on class state, and are effectively implementation details, so they can go into the cpp file .
-
Lioncash authored
The previous handle table size is a holdover from Citra. The actual handle table construct on Horizon only allows for a maximum of 1024 entries.
-
Lioncash authored
We don't need to potentially inline the teardown logic of all of the handle instances.
-
- Sep 15, 2018
-
-
fearlessTobi authored
-
- Aug 29, 2018
-
-
Lioncash authored
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.
-
- Aug 25, 2018
-
-
Lioncash authored
This replaces the lingering 3DS constant with the proper one, and utilizes it within HandleTable's Create() member function.
-
- Aug 02, 2018
-
-
Lioncash authored
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.
-
- Jan 25, 2018
-
-
bunnei authored
-
- Jan 20, 2018
-
-
James Rowe authored
-
- Dec 29, 2017
-
-
bunnei authored
-
- May 30, 2017
-
-
Yuri Kunde Schlesner authored
-
- May 29, 2017
-
-
Yuri Kunde Schlesner authored
Now that HandleTable doesn't directly depend on WaitObject anymore, this can be separated from the main kernel.h header.
-
Yuri Kunde Schlesner authored
This isn't necessary anymore since plain Get works correctly for WaitObjects.
-
Yuri Kunde Schlesner authored
-
- May 25, 2017
-
-
Yuri Kunde Schlesner authored
-
- Jan 05, 2017
-
-
Subv authored
Closes #1904
-
- Jan 04, 2017
-
-
Subv authored
-
Subv authored
The implementation is based on reverse engineering of the 3DS's kernel. A mutex holder's priority will be temporarily boosted to the best priority among any threads that want to acquire any of its held mutexes. When the holder releases the mutex, it's priority will be boosted to the best priority among the threads that want to acquire any of its remaining held mutexes.
-
Subv authored
This will be useful when implementing mutex priority inheritance.
-
- Dec 22, 2016
-
-
bunnei authored
-
- Dec 09, 2016
-
-
Subv authored
Define a variable with the value of the sync timeout error code. Use a boost::flat_map instead of an unordered_map to hold the equivalence of objects and wait indices in a WaitSynchN call.
-
- Dec 05, 2016
-
-
Subv authored
-
- Dec 04, 2016
-
-
Subv authored
Threads will now be awakened when the objects they're waiting on are signaled, instead of repeating the WaitSynchronization call every now and then. The scheduler is now called once after every SVC call, and once after a thread is awakened from sleep by its timeout callback. This new implementation is based off reverse-engineering of the real kernel. See https://gist.github.com/Subv/02f29bd9f1e5deb7aceea1e8f019c8f4 for a more detailed description of how the real kernel handles rescheduling.
-
- Dec 01, 2016
-
-
Subv authored
-
Subv authored
fixup! Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.
-
Subv authored
Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication. All handles obtained via srv::GetServiceHandle or svcConnectToPort are references to ClientSessions. Service modules will wait on the counterpart of those ClientSessions (Called ServerSessions) using svcReplyAndReceive or svcWaitSynchronization[1|N], and will be awoken when a SyncRequest is performed. HLE Interfaces are now ClientPorts which override the HandleSyncRequest virtual member function to perform command handling immediately.
-
- Nov 20, 2016
-
-
Subv authored
3dsx and elf files default to system mode 2 (96MB allocated to the application). This allows Home Menu to boot without modifications. Closes #1849
-
- Sep 22, 2016
- Sep 21, 2016
-
-
Emmanuel Gil Peyrot authored
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
-
- Sep 19, 2016
-
-
Yuri Kunde Schlesner authored
-
- Sep 18, 2016
-
-
Emmanuel Gil Peyrot authored
-
- Jun 11, 2016
-
-
Subv authored
-
- Jun 05, 2016
-
-
Subv authored
This is part of an ongoing effort to implement support for multiple processes.
-
- Jul 12, 2015
-
-
Yuri Kunde Schlesner authored
-
Yuri Kunde Schlesner authored
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.
-
- Jun 27, 2015
-
-
Emmanuel Gil Peyrot authored
-
- Jun 17, 2015
-
-
bunnei authored
-
- May 21, 2015
-
-
Emmanuel Gil Peyrot authored
Kernel: Fix a warning introduced with ResourceLimit, and remove the fallback code to prevent it from happening again.
-
- May 15, 2015
-
-
Subv authored
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.
-