1
0
Fork 0
forked from suyu/suyu
suyu/src/core/loader
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
..
deconstructed_rom_directory.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
deconstructed_rom_directory.h Avoid parsing RomFS to directory in NCA 2018-08-06 23:06:33 -04:00
elf.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
elf.h Virtual Filesystem 2: Electric Boogaloo (#676) 2018-07-18 18:07:11 -07:00
linker.cpp linker: Remove unused parameter from WriteRelocations() 2018-07-23 17:40:12 -04:00
linker.h linker: Remove unused parameter from WriteRelocations() 2018-07-23 17:40:12 -04:00
loader.cpp loader: Add new NAX-specific errors and messages 2018-08-23 11:52:44 -04:00
loader.h loader: Add new NAX-specific errors and messages 2018-08-23 11:52:44 -04:00
nax.cpp file_sys/crypto: Fix missing/unnecessary includes 2018-08-24 22:15:32 -04:00
nax.h file_sys: Cut down on includes and copies 2018-08-23 11:53:30 -04:00
nca.cpp service/filesystem: Use forward declarations where applicable 2018-08-20 23:28:46 -04:00
nca.h loader/nca: Remove unnecessary includes and member variables 2018-08-15 01:41:40 -04:00
nro.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
nro.h kernel: Move object class to its own source files 2018-08-01 23:34:42 -04:00
nso.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
nso.h kernel: Move object class to its own source files 2018-08-01 23:34:42 -04:00
xci.cpp xci: Fix error masking issue 2018-08-23 11:52:44 -04:00
xci.h loader/xci: Remove unnecessary includes and member variables 2018-08-15 01:41:35 -04:00