Files

18 lines
511 B
C

#ifndef _KERNEL_PLATFORM_GENERIC_VMM_MAPPING_TABLE_H
#define _KERNEL_PLATFORM_GENERIC_VMM_MAPPING_TABLE_H
#include <libkern/types.h>
struct mapping_entry {
uintptr_t paddr;
uintptr_t vaddr;
size_t pages;
uint32_t flags;
uint32_t last; // 1 if an element is the last.
};
typedef struct mapping_entry mapping_entry_t;
extern mapping_entry_t extern_mapping_table[]; // Maps after kernel tables are ready, so can be outside kernelspace
#endif // _KERNEL_PLATFORM_GENERIC_VMM_MAPPING_TABLE_H