summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2021-04-02 18:04:26 +0000
committerAda Christine <adachristine18@gmail.com>2021-04-02 18:04:26 +0000
commit167481f8988a860ea6d7ea8bbdb7155e4eb7abeb (patch)
treec348e1ea1bec525039decf6f15477d381f2d0bd7 /api
parenta41f11851c23390510a8cf9d0a932b9d08636fb0 (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.h2
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)