summaryrefslogtreecommitdiffhomepage
path: root/Private/StorageKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-29 22:38:43 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-29 22:38:43 +0100
commita8c17ccd6d97cc78830917dc6282b040b21ba16c (patch)
tree2181e96ccf9c89c677d2208661bce5584a667470 /Private/StorageKit
parent78861f1b16f18a85e9f6890e16eb320412b6ab80 (diff)
Kernel: Update SPECS and TODO list.
Cleaned up the SPECS to get into the point. Current Task: Load kernel into memory. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/StorageKit')
-rw-r--r--Private/StorageKit/PRDT.hpp71
1 files changed, 32 insertions, 39 deletions
diff --git a/Private/StorageKit/PRDT.hpp b/Private/StorageKit/PRDT.hpp
index 96e0c5cd..9522ccab 100644
--- a/Private/StorageKit/PRDT.hpp
+++ b/Private/StorageKit/PRDT.hpp
@@ -13,42 +13,35 @@
#define PRDT_TRANSFER_SIZE (sizeof(hCore::UShort))
-namespace hCore
-{
- class PRDT final
- {
- public:
- PRDT() = delete;
- explicit PRDT(const UIntPtr &physAddr);
- ~PRDT();
-
- PRDT &operator=(const PRDT &) = default;
- PRDT(const PRDT &) = default;
-
- public:
- const UInt &Low();
- const UShort &High();
- const UIntPtr &PhysicalAddress();
-
- public:
- PRDT &operator=(const UIntPtr& prdtAddress);
-
- public:
- operator bool()
- {
- return m_PrdtAddr != 0;
- }
-
- private:
- union
- {
- UInt m_Low;
- UShort m_High;
- };
-
- UIntPtr m_PrdtAddr;
-
- };
-
- using PhysicalAddress = PRDT; // here
-} // namespace hCore
+namespace hCore {
+class PRDT final {
+ public:
+ PRDT() = delete;
+ explicit PRDT(const UIntPtr &physAddr);
+ ~PRDT();
+
+ PRDT &operator=(const PRDT &) = default;
+ PRDT(const PRDT &) = default;
+
+ public:
+ const UInt &Low();
+ const UShort &High();
+ const UIntPtr &PhysicalAddress();
+
+ public:
+ PRDT &operator=(const UIntPtr &prdtAddress);
+
+ public:
+ operator bool() { return m_PrdtAddr != 0; }
+
+ private:
+ union {
+ UInt m_Low;
+ UShort m_High;
+ };
+
+ UIntPtr m_PrdtAddr;
+};
+
+using PhysicalAddress = PRDT; // here
+} // namespace hCore