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); }