From 0977f984ca61c6cce96705ab923bdf93dc3ce5a3 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 26 May 2020 18:14:14 +0200 Subject: Reduced some magic numbers --- src/kernel/memory/paging.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/kernel/memory/paging.h') diff --git a/src/kernel/memory/paging.h b/src/kernel/memory/paging.h index f42bb2e..3d3b176 100644 --- a/src/kernel/memory/paging.h +++ b/src/kernel/memory/paging.h @@ -3,7 +3,9 @@ #include -#define PAGE_SIZE 0x400000 +#define PAGE_ALIGN 4096 +#define PAGE_COUNT 1024 +#define PAGE_SIZE PAGE_ALIGN *PAGE_COUNT #define PD_PRESENT 1 << 0 #define PD_RW 1 << 1 -- cgit v1.2.3