[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

@@ -0,0 +1,9 @@
VM_FLAG( none, 0x00000000)
VM_FLAG( write, 0x00000001)
VM_FLAG( exec, 0x00000002)
VM_FLAG( zero, 0x00000010)
VM_FLAG( contiguous, 0x00000020)
VM_FLAG( large_pages, 0x00000100)
VM_FLAG( huge_pages, 0x00000200)
VM_FLAG( write_combine, 0x00001000)
VM_FLAG( mmio, 0x00010000)