diff options
author | bunnei <bunneidev@gmail.com> | 2015-05-15 15:42:36 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-05-15 15:42:36 +0200 |
commit | ef8d0e9823e0ac61624002b89912e8995a3588e4 (patch) | |
tree | dfaee1cefb39e627bd90562c416d19fe6002209c /src/core/loader/elf.cpp | |
parent | Merge pull request #675 from jroweboy/windows-build-fixes (diff) | |
parent | Core/ResourceLimits: Implemented the basic structure of ResourceLimits. (diff) | |
download | yuzu-ef8d0e9823e0ac61624002b89912e8995a3588e4.tar yuzu-ef8d0e9823e0ac61624002b89912e8995a3588e4.tar.gz yuzu-ef8d0e9823e0ac61624002b89912e8995a3588e4.tar.bz2 yuzu-ef8d0e9823e0ac61624002b89912e8995a3588e4.tar.lz yuzu-ef8d0e9823e0ac61624002b89912e8995a3588e4.tar.xz yuzu-ef8d0e9823e0ac61624002b89912e8995a3588e4.tar.zst yuzu-ef8d0e9823e0ac61624002b89912e8995a3588e4.zip |
Diffstat (limited to 'src/core/loader/elf.cpp')
-rw-r--r-- | src/core/loader/elf.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/loader/elf.cpp b/src/core/loader/elf.cpp index a951bc80f..f00753a79 100644 --- a/src/core/loader/elf.cpp +++ b/src/core/loader/elf.cpp @@ -11,6 +11,7 @@ #include "common/symbols.h" #include "core/hle/kernel/kernel.h" +#include "core/hle/kernel/resource_limit.h" #include "core/loader/elf.h" #include "core/memory.h" @@ -354,6 +355,9 @@ ResultStatus AppLoader_ELF::Load() { Kernel::g_current_process->svc_access_mask.set(); Kernel::g_current_process->address_mappings = default_address_mappings; + // Attach the default resource limit (APPLICATION) to the process + Kernel::g_current_process->resource_limit = Kernel::ResourceLimit::GetForCategory(Kernel::ResourceLimitCategory::APPLICATION); + ElfReader elf_reader(&buffer[0]); elf_reader.LoadInto(Memory::PROCESS_IMAGE_VADDR); // TODO: Fill application title |