summaryrefslogtreecommitdiffhomepage
path: root/Public/SDK/System.Core/Sources/Heap.cxx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-25 16:43:00 +0100
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-25 16:43:00 +0100
commitbe29b406526c931a606d4d4de545f71e62bc893a (patch)
tree99a37a287dda888803653df9e13cb1336150cb85 /Public/SDK/System.Core/Sources/Heap.cxx
parentf5e0bc85b06c84e0c6bc1da471630d02ff2ed7a3 (diff)
Kernel: A lot of preliminary changes before AHCI and SMP support.
Diffstat (limited to 'Public/SDK/System.Core/Sources/Heap.cxx')
-rw-r--r--Public/SDK/System.Core/Sources/Heap.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Public/SDK/System.Core/Sources/Heap.cxx b/Public/SDK/System.Core/Sources/Heap.cxx
index 3803af3a..18106f41 100644
--- a/Public/SDK/System.Core/Sources/Heap.cxx
+++ b/Public/SDK/System.Core/Sources/Heap.cxx
@@ -60,24 +60,24 @@ HeapInterface* HeapInterface::Shared() noexcept {
}
HeapInterface::HeapInterface() {
- CA_MUST_PASS(HcProcessHeapExists(kInstanceObject, (PtrVoidType)this));
+ CA_MUST_PASS(HcProcessHeapExists(kApplicationObject, (PtrVoidType)this));
}
HeapInterface::~HeapInterface() { delete this; }
void HeapInterface::Delete(PtrHeapType me) noexcept {
CA_MUST_PASS(me);
- HcFreeProcessHeap(kInstanceObject, me);
+ HcFreeProcessHeap(kApplicationObject, me);
}
SizeType HeapInterface::Size(PtrHeapType me) noexcept {
CA_MUST_PASS(me);
- return HcProcessHeapSize(kInstanceObject, me);
+ return HcProcessHeapSize(kApplicationObject, me);
}
PtrHeapType HeapInterface::New(const SizeType& sz, const DWordType flags) {
SizeType _sz = sz;
if (!_sz) ++_sz;
- return HcAllocateProcessHeap(kInstanceObject, _sz, flags);
+ return HcAllocateProcessHeap(kApplicationObject, _sz, flags);
}