[kernel] Create system_map_mmio syscall

Create a syscall for drivers to be able to ask the kernel for a VMA that
maps a MMIO area. Also expose vm_flags via j6 table style include file
and new flags.h header.
This commit is contained in:
Justin C. Miller
2021-02-04 19:42:45 -08:00
parent 2244764777
commit b898949ffc
5 changed files with 36 additions and 14 deletions

View File

@@ -17,20 +17,9 @@ class vm_space;
enum class vm_flags : uint32_t
{
none = 0x00000000,
write = 0x00000001,
exec = 0x00000002,
zero = 0x00000010,
contiguous = 0x00000020,
large_pages = 0x00000100,
huge_pages = 0x00000200,
mmio = 0x00010000,
write_combine = 0x00020000,
#define VM_FLAG(name, v) name = v,
#include "j6/tables/vm_flags.inc"
#undef VM_FLAG
user_mask = 0x0000ffff ///< flags allowed via syscall
};