boot2: move to separate process

This commit is contained in:
Michael Scire 2019-10-18 21:06:40 -07:00 committed by SciresM
parent 535e49a38d
commit 6abd756e0c
14 changed files with 427 additions and 31 deletions

View file

@ -35,10 +35,8 @@ extern "C" {
extern u32 __start__;
u32 __nx_applet_type = AppletType_None;
u32 __nx_fs_num_sessions = 1;
u32 __nx_fsdev_direntry_cache_size = 1;
#define INNER_HEAP_SIZE 0x4000
#define INNER_HEAP_SIZE 0x2000
size_t nx_inner_heap_size = INNER_HEAP_SIZE;
char nx_inner_heap[INNER_HEAP_SIZE];
@ -150,7 +148,6 @@ void __appInit(void) {
R_ASSERT(lrInitialize());
R_ASSERT(ldrPmInitialize());
R_ASSERT(splInitialize());
R_ASSERT(fsInitialize());
});
CheckAtmosphereVersion(CURRENT_ATMOSPHERE_VERSION);
@ -158,8 +155,6 @@ void __appInit(void) {
void __appExit(void) {
/* Cleanup services. */
fsdevUnmountAll();
fsExit();
splExit();
ldrPmExit();
lrExit();