x86/mm: add huge page support

This is part of a series of commits where i
completely rewrite kmalloc() because it needs to
be able to return physically contiguous memory for
DMA operations.
Yes, i know the build isn't working right now.
This commit is contained in:
anna 2021-10-17 01:09:51 +02:00
parent 6865864444
commit c911ff9009
Signed by: fef
GPG key ID: EC22E476DC2D3D84
5 changed files with 103 additions and 190 deletions

View file

@ -7,7 +7,7 @@
#ifdef _KERNEL
#include <gay/mm.h>
#define malloc(size) kmalloc(size, MM_KERNEL)
#define malloc(size) kmalloc(size, MM_KERN)
#efine free(ptr) kfree(ptr)
#else
/*