mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
fix stupid pmm glitch and compilation failure
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
#ifndef _HPET_H_INCLUDE
|
#ifndef _HPET_H_INCLUDE
|
||||||
#define _HPET_H_INCLUDE
|
#define _HPET_H_INCLUDE
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
void hpet_init();
|
void hpet_init();
|
||||||
|
|
||||||
void hpet_wait_us(size_t us);
|
void hpet_wait_us(size_t us);
|
||||||
|
|||||||
+1
-1
@@ -238,7 +238,7 @@ void pmm_init(){
|
|||||||
|
|
||||||
if(!current->type == LIMINE_MEMMAP_USABLE) continue;
|
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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user