From 553ea3036d8a3f4915c31897d9c6752fe7b71c87 Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Tue, 22 Jun 2021 17:16:38 +0200 Subject: [PATCH] Kernel: Remove PAGE_SIZE from CPU.h We have that information in LibC, lets use that instead --- Kernel/Arch/x86/CPU.h | 1 - Kernel/Heap/kmalloc.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Arch/x86/CPU.h b/Kernel/Arch/x86/CPU.h index 08c1bfac52..32c1bde4f2 100644 --- a/Kernel/Arch/x86/CPU.h +++ b/Kernel/Arch/x86/CPU.h @@ -14,7 +14,6 @@ #define READONLY_AFTER_INIT __attribute__((section(".ro_after_init"))) #define UNMAP_AFTER_INIT NEVER_INLINE __attribute__((section(".unmap_after_init"))) -#define PAGE_SIZE 4096 /* Map IRQ0-15 @ ISR 0x50-0x5F */ #define IRQ_VECTOR_BASE 0x50 #define GENERIC_INTERRUPT_HANDLERS_COUNT (256 - IRQ_VECTOR_BASE) diff --git a/Kernel/Heap/kmalloc.h b/Kernel/Heap/kmalloc.h index 624758ea53..c9db2b9285 100644 --- a/Kernel/Heap/kmalloc.h +++ b/Kernel/Heap/kmalloc.h @@ -8,6 +8,7 @@ #include #include +#include #define KMALLOC_SCRUB_BYTE 0xbb #define KFREE_SCRUB_BYTE 0xaa