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:
parent
6865864444
commit
c911ff9009
5 changed files with 103 additions and 190 deletions
|
|
@ -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
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue