diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-08-06 02:26:52 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-08-16 06:03:47 +0200 |
commit | 74d4bc0af1d2f22105bf3c00efcb85613d59cc19 (patch) | |
tree | 171c5d0508d99f9ef4dcba2a0e3543eb9bdfa1db /src/core/hle/kernel/process.h | |
parent | HLE: Remove empty ConfigMem and SharedPage Shutdown functions (diff) | |
download | yuzu-74d4bc0af1d2f22105bf3c00efcb85613d59cc19.tar yuzu-74d4bc0af1d2f22105bf3c00efcb85613d59cc19.tar.gz yuzu-74d4bc0af1d2f22105bf3c00efcb85613d59cc19.tar.bz2 yuzu-74d4bc0af1d2f22105bf3c00efcb85613d59cc19.tar.lz yuzu-74d4bc0af1d2f22105bf3c00efcb85613d59cc19.tar.xz yuzu-74d4bc0af1d2f22105bf3c00efcb85613d59cc19.tar.zst yuzu-74d4bc0af1d2f22105bf3c00efcb85613d59cc19.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/process.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index 5c7de9044..7c3a78b9e 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h @@ -49,6 +49,7 @@ union ProcessFlags { }; class ResourceLimit; +struct MemoryRegionInfo; struct CodeSet final : public Object { static SharedPtr<CodeSet> Create(std::string name, u64 program_id); @@ -135,11 +136,14 @@ public: // The left/right bounds of the address space covered by heap_memory. VAddr heap_start = 0, heap_end = 0; - std::shared_ptr<std::vector<u8>> linear_heap_memory; + MemoryRegionInfo* memory_region = nullptr; /// Bitmask of the used TLS slots std::bitset<300> used_tls_slots; + VAddr GetLinearHeapBase() const; + VAddr GetLinearHeapLimit() const; + ResultVal<VAddr> HeapAllocate(VAddr target, u32 size, VMAPermission perms); ResultCode HeapFree(VAddr target, u32 size); |