diff options
| author | Ada Christine <adachristine18@gmail.com> | 2021-04-02 18:04:26 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2021-04-02 18:04:26 +0000 |
| commit | 167481f8988a860ea6d7ea8bbdb7155e4eb7abeb (patch) | |
| tree | c348e1ea1bec525039decf6f15477d381f2d0bd7 /api | |
| parent | a41f11851c23390510a8cf9d0a932b9d08636fb0 (diff) | |
kernel has gdt now and loads segment register and we can allocate pages
Diffstat (limited to 'api')
| -rw-r--r-- | api/kernel/memory/paging.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/kernel/memory/paging.h b/api/kernel/memory/paging.h index 3d13eda..1f4ae47 100644 --- a/api/kernel/memory/paging.h +++ b/api/kernel/memory/paging.h @@ -1,5 +1,7 @@ #pragma once +#define PAGE_SIZE 0x1000 + #define PAGE_PR (1ULL << 0) #define PAGE_WR (1ULL << 1) #define PAGE_NX (1ULL << 63) |
