pmm_hhdmfree()

we had a pmm_hhdmalloc() but not a pmm_hhdmfree(), so that interface function is now implemented
This commit is contained in:
Matheus
2022-07-25 22:15:40 -03:00
parent b183e72e2a
commit 81d7e7e84f
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -137,6 +137,10 @@ void* pmm_alloc(size_t count){
}
void pmm_hhdmfree(void* addr, size_t count){
pmm_free(addr - (size_t)limine_hhdm_offset, count);
}
void* pmm_hhdmalloc(size_t count){
void* alloc = pmm_alloc(count);
if(!alloc) return NULL;