summaryrefslogtreecommitdiffhomepage
path: root/src/kernel/HALKit/ARM64/Paging.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-03 15:44:28 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-03-03 15:44:28 +0100
commitc7fe1ab6e2f97a7f0bfc6aaf97374f841fb63c0d (patch)
treeedfef006c63d73ef6b48b537b6f21295db6ffe9a /src/kernel/HALKit/ARM64/Paging.h
parent92bbadf36f8bdffed9090cb345e57fc252c5a133 (diff)
feat: syschk, hal{x64}: ATA PIO patches, reworked I/O system.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/kernel/HALKit/ARM64/Paging.h')
-rw-r--r--src/kernel/HALKit/ARM64/Paging.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/kernel/HALKit/ARM64/Paging.h b/src/kernel/HALKit/ARM64/Paging.h
index 1984a9f2..bf062e3a 100644
--- a/src/kernel/HALKit/ARM64/Paging.h
+++ b/src/kernel/HALKit/ARM64/Paging.h
@@ -40,10 +40,14 @@
/// Long format address range
-#define cPageMAll {0b000, 0b000}
-#define cPageMToMax(M) {M, 0b000}
-#define cPageMaxToM(M) {0b000, M}
-#define cPageMToN(M, N) {M, N}
+#define cPageMAll \
+ { 0b000, 0b000 }
+#define cPageMToMax(M) \
+ { M, 0b000 }
+#define cPageMaxToM(M) \
+ { 0b000, M }
+#define cPageMToN(M, N) \
+ { M, N }
namespace Kernel::HAL {
struct PACKED PTE_4KB final {
@@ -81,9 +85,7 @@ namespace Detail {
PageEnable = 31,
};
- inline UInt8 control_register_cast(ControlRegisterBits reg) {
- return static_cast<UInt8>(reg);
- }
+ inline UInt8 control_register_cast(ControlRegisterBits reg) { return static_cast<UInt8>(reg); }
} // namespace Detail
struct PDE_4KB final {