slab: upgrade kmalloc to allow DMA regions

these DMA regions are only meant to comply with certain AHCI
requirements, and are not yet general purpose
This commit is contained in:
Michael Shaw 2023-05-08 01:14:11 -04:00
commit 8544efe1ab
7 changed files with 89 additions and 36 deletions

View file

@ -17,6 +17,7 @@
#define ALIGN(_a) __attribute__((aligned(_a)))
struct page { /* I would rather refer to this as a struct */
union {
struct {
@ -81,6 +82,7 @@ extern size_t max_regions;
extern struct page *pml4;
extern paddr_t kcr3;
extern struct page kdefault_attrs;
uint64_t cr3_read();
void cr3_write(uint64_t cr3);