summaryrefslogtreecommitdiffhomepage
path: root/Kernel/HALKit/AMD64/Processor.hpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-06-19 17:56:55 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-06-19 17:57:16 +0200
commit19d0857d84cbc0267a8b222368e143bdcdaaf9a7 (patch)
tree8d8a274003cbe6837a5f565e97a810d0774f0624 /Kernel/HALKit/AMD64/Processor.hpp
parent720e24cea004356da037648b92fd7eb02f3c74a8 (diff)
ARM64: Got into the linking stage, writing missing drivers in HAL now.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Kernel/HALKit/AMD64/Processor.hpp')
-rw-r--r--Kernel/HALKit/AMD64/Processor.hpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/Kernel/HALKit/AMD64/Processor.hpp b/Kernel/HALKit/AMD64/Processor.hpp
index c52fecdf..7c0a4415 100644
--- a/Kernel/HALKit/AMD64/Processor.hpp
+++ b/Kernel/HALKit/AMD64/Processor.hpp
@@ -54,7 +54,7 @@ namespace NewOS
namespace NewOS::HAL
{
-
+ /// @brief Virtual memory flags.
enum
{
eFlagsUser,
@@ -87,9 +87,11 @@ namespace NewOS::HAL
{
kcout << "PM is already present.\r";
- kcout << "PhysicalAddress: " << hex_number(pde->Pte[pml4_index].PhysicalAddress) << endl;
- kcout << "User: " << (pde->Pte[pml4_index].User ? "yes" : "no") << "\r";
- kcout << "RW: " << (pde->Pte[pml4_index].Rw ? "yes" : "no") << "\r";
+ kcout << "PhysicalAddress: " << hex_number(pde->Pte[pml4_index].PhysicalAddress);
+ kcout << "\r";
+
+ kcout << "User: " << (pde->Pte[pml4_index].User ? "YES" : "NO") << "\r";
+ kcout << "RW: " << (pde->Pte[pml4_index].Rw ? "YES" : "NO") << "\r";
return 1;
}
@@ -146,7 +148,7 @@ namespace NewOS::HAL
using RawRegister = UInt64;
using InterruptId = UShort; /* For each element in the IVT */
- using interruptTrap = UIntPtr(UIntPtr sp);
+ using InterruptTrapKind = UIntPtr(UIntPtr sp);
typedef UIntPtr Reg;