yuzu/src/core/hle/kernel
Lioncash 0cbcd6ec9a kernel: Eliminate kernel global state
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-28 22:31:51 -04:00
..
address_arbiter.cpp address_arbiter: Return by value from GetThreadsWaitingOnAddress() 2018-08-05 16:29:17 -04:00
address_arbiter.h kernel: Remove unnecessary includes 2018-07-31 10:15:17 -04:00
client_port.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
client_port.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
client_session.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
client_session.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
errors.h kernel/error: Amend error code for ERR_MAX_CONNECTIONS_REACHED 2018-08-25 09:40:42 -04:00
event.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
event.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
handle_table.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
handle_table.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
hle_ipc.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
hle_ipc.h hle_ipc: Make WriteToOutgoingCommandBuffer()'s reference parameter const 2018-08-09 02:51:38 -04:00
kernel.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
kernel.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
mutex.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
mutex.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
object.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
object.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
process.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
process.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
resource_limit.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
resource_limit.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
scheduler.cpp core: Namespace all code in the arm subdirectory under the Core namespace 2018-08-24 21:50:39 -04:00
scheduler.h core: Namespace all code in the arm subdirectory under the Core namespace 2018-08-24 21:50:39 -04:00
server_port.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
server_port.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
server_session.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
server_session.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
session.cpp Format: Run the new clang format on everything 2018-01-20 16:45:11 -07:00
session.h kernel: Move object class to its own source files 2018-08-01 23:34:42 -04:00
shared_memory.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
shared_memory.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
svc.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
svc.h Add & correct miscellaneous things (#470) 2018-05-25 22:31:54 -04:00
svc_wrap.h Add additional missing format. 2018-06-21 21:09:51 -06:00
thread.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
thread.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
timer.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
timer.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
vm_manager.cpp kernel/vm_manager: Convert loop into std::any_of() 2018-08-02 12:46:15 -04:00
vm_manager.h kernel/vm_manager: Use const where applicable 2018-08-02 12:21:46 -04:00
wait_object.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
wait_object.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00