diff options
author | Marvin Borner | 2020-05-26 18:14:14 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-26 18:14:14 +0200 |
commit | 0977f984ca61c6cce96705ab923bdf93dc3ce5a3 (patch) | |
tree | 1d69d41996b383a15d897a68e140147adeebcd8b /src/kernel/memory/paging.h | |
parent | b70116dc7c57132c109955c4b174ff2417afda68 (diff) |
Reduced some magic numbers
Diffstat (limited to 'src/kernel/memory/paging.h')
-rw-r--r-- | src/kernel/memory/paging.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 <stdint.h> -#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 |