diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-30 08:10:48 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-30 08:10:48 +0100 |
| commit | 72b41e2f711198ad9baa846e7ba37f6e070cedb0 (patch) | |
| tree | 412e384fb7ad218098d69c52d5d92a2801ec8a8e /src/kernel/HALKit/ARM64/Paging.h | |
| parent | 951e967388dbf628e9a4b8b6ce4e8a637de91d75 (diff) | |
chore: ddk: Fix build on nebuild for C++ DDK.
chore: kernel: Tweaks and internal improvements.
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.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/kernel/HALKit/ARM64/Paging.h b/src/kernel/HALKit/ARM64/Paging.h index 8dedf65f..e5487e22 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 { |
