mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:58:11 +00:00
Kernel: Add kmalloc.cpp to aarch64
This commit is contained in:
parent
b0f701d053
commit
2b442ae44f
3 changed files with 7 additions and 29 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <AK/Assertions.h>
|
||||
#include <AK/Types.h>
|
||||
#include <Kernel/Arch/PageDirectory.h>
|
||||
#include <Kernel/Debug.h>
|
||||
#include <Kernel/Heap/Heap.h>
|
||||
#include <Kernel/Heap/kmalloc.h>
|
||||
|
@ -327,7 +328,7 @@ struct KmallocGlobalData {
|
|||
|
||||
expansion_data->next_virtual_address = expansion_data->next_virtual_address.offset(new_subheap_size);
|
||||
|
||||
auto cpu_supports_nx = Processor::current().has_feature(CPUFeature::NX);
|
||||
auto cpu_supports_nx = Processor::current().has_nx();
|
||||
|
||||
SpinlockLocker mm_locker(Memory::s_mm_lock);
|
||||
SpinlockLocker pd_locker(MM.kernel_page_directory().get_lock());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue