refactor: replace all stdint::uint32_t into short and more manageable u32_t
[lunaix-os.git] / lunaix-os / includes / lunaix / common.h
index 8873a73ba35b12f90959381cfa0ea5f5be69862e..1ebf15836f509c7bbd0a5fcb8bcb00c636947166 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef __LUNAIX_CONSTANTS_H
 #define __LUNAIX_CONSTANTS_H
 
+#define PG_SIZE_BITS 12
+#define PG_SIZE (1 << PG_SIZE_BITS)
+#define PG_INDEX_BITS 10
+
 #define MEM_1MB 0x100000
 #define MEM_4MB 0x400000
 
@@ -14,9 +18,6 @@
 // #define KHEAP_START (KERNEL_MM_BASE + KCODE_MAX_SIZE)
 // #define KHEAP_SIZE_MB 256
 
-#define PROC_TABLE_SIZE_MB 4
-#define PROC_START (KERNEL_MM_BASE + KCODE_MAX_SIZE)
-
 #define VGA_FRAMEBUFFER 0xB8000
 
 #define KCODE_SEG 0x08