From 50243cc540a0bae6769a9cffa46e4bc790a1c0d5 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 7 Aug 2022 00:36:50 -0300 Subject: [PATCH] fix stupid pmm glitch and compilation failure --- src/arch/x86_64/include/arch/hpet.h | 2 ++ src/sys/mm/pmm.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/arch/x86_64/include/arch/hpet.h b/src/arch/x86_64/include/arch/hpet.h index 93cb1388..3d116a7d 100644 --- a/src/arch/x86_64/include/arch/hpet.h +++ b/src/arch/x86_64/include/arch/hpet.h @@ -1,6 +1,8 @@ #ifndef _HPET_H_INCLUDE #define _HPET_H_INCLUDE +#include + void hpet_init(); void hpet_wait_us(size_t us); diff --git a/src/sys/mm/pmm.c b/src/sys/mm/pmm.c index d2265dd6..8f56a96d 100644 --- a/src/sys/mm/pmm.c +++ b/src/sys/mm/pmm.c @@ -238,7 +238,7 @@ void pmm_init(){ if(!current->type == LIMINE_MEMMAP_USABLE) continue; - pmm_free((void*)current->base, current->length / PAGE_SIZE + 1); + pmm_free((void*)current->base, current->length / PAGE_SIZE); }