forked from eden-emu/eden
nso: Refactor and allocate .bss section.
This commit is contained in:
parent
fa1c7c7ee1
commit
8c92435ded
9 changed files with 162 additions and 132 deletions
|
@ -401,7 +401,8 @@ ResultStatus AppLoader_ELF::Load() {
|
|||
SharedPtr<CodeSet> codeset = elf_reader.LoadInto(Memory::PROCESS_IMAGE_VADDR);
|
||||
codeset->name = filename;
|
||||
|
||||
Kernel::g_current_process = Kernel::Process::Create(std::move(codeset));
|
||||
Kernel::g_current_process = Kernel::Process::Create("main");
|
||||
Kernel::g_current_process->LoadModule(codeset, codeset->entrypoint);
|
||||
Kernel::g_current_process->svc_access_mask.set();
|
||||
Kernel::g_current_process->address_mappings = default_address_mappings;
|
||||
|
||||
|
@ -409,7 +410,7 @@ ResultStatus AppLoader_ELF::Load() {
|
|||
Kernel::g_current_process->resource_limit =
|
||||
Kernel::ResourceLimit::GetForCategory(Kernel::ResourceLimitCategory::APPLICATION);
|
||||
|
||||
Kernel::g_current_process->Run(48, Kernel::DEFAULT_STACK_SIZE);
|
||||
Kernel::g_current_process->Run(codeset->entrypoint, 48, Kernel::DEFAULT_STACK_SIZE);
|
||||
|
||||
is_loaded = true;
|
||||
return ResultStatus::Success;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue