From 120580707d93bf15de4affb3c3af489a6f1fcc0d Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 20 Jun 2024 11:00:20 +0200 Subject: ARM64: Adding virtual memory support. Signed-off-by: Amlal El Mahrouss --- Kernel/HALKit/AMD64/Processor.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Kernel/HALKit/AMD64/Processor.hpp') diff --git a/Kernel/HALKit/AMD64/Processor.hpp b/Kernel/HALKit/AMD64/Processor.hpp index 7c0a4415..98a5aee6 100644 --- a/Kernel/HALKit/AMD64/Processor.hpp +++ b/Kernel/HALKit/AMD64/Processor.hpp @@ -32,7 +32,7 @@ #define kTrapGate (0xEF) #define kTaskGate (0b10001100) #define kGdtCodeSelector (0x08) -#define kVirtualAddressStartOffset (0x10000000) +#define cHeapStartOffset (0x10000000) namespace NewOS { @@ -273,7 +273,7 @@ EXTERN_C void hal_load_gdt(NewOS::HAL::RegisterGDT ptr); #define kKernelIdtSize 0x100 #define kKernelInterruptId 0x32 -inline NewOS::VoidPtr kKernelVirtualStart = (NewOS::VoidPtr)kVirtualAddressStartOffset; +inline NewOS::VoidPtr kKernelVirtualStart = (NewOS::VoidPtr)cHeapStartOffset; inline NewOS::UIntPtr kKernelVirtualSize = 0UL; inline NewOS::VoidPtr kKernelPhysicalStart = nullptr; -- cgit v1.2.3