aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_map.c
AgeCommit message (Collapse)Author
2024-05-25kernel: vm: Make vmobj ref start at zeroIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-01kernel: vm_map: Refactor mmap()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-01kernel: vm_map: Ensure mmap len is always alignedIan Moffett
Physical memory pages to be allocated is 'len / GRANULE'. Previously, if 'len' was less than the machine page-size, the amount of pages to allocate would be 0 causing the map to fail. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-25kernel: vm_map: Refactor mmap()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-25kernel: vm_map: Fix mmap() clobbering mem spaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-25kernel: vm_map: Cleanup on failure in mmap()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-25kernel: vm_map: Check for allocation failureIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-25kernel: vm_map: Refactor mmap()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-22kernel: vm_map: Fix anon map bugIan Moffett
We should allocate physical memory before we map so the address returned isn't 0. We should also set the virtual memory object for the mapping. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-20kernel: vm: Add initial demand paging supportIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-18kernel: vm_map: Handle oflag in shared mapsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-18kernel: vm_map: Handle pager physical addressesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-17kernel: vm_map: Handle pager errorsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-17kernel: vm_map: Add support for backing fileIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-17kernel: vm_map: Handle map-space 'map_count' fieldIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-17kernel: vm_map: Refactor kernel mmap()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-16kernel: vm_map: Allocate physmem for MAP_ANONYMOUSIan Moffett
Only allocate physical memory during an anonymous map request Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-16kernel: vm_map: Add mmap() and munmap()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-16kernel: vm_map: Add more detail to commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-09kernel: vm_map: Account for address misalignmentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-07kernel: Require VAS arg in vm + loader refactorIan Moffett
This commit adds vas argument to VM mapping functions as well as changing how mapping is done in the loader. This commit also fixes weird error handling and parses needed PHDRs within the loader Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-01kernel: vm_map: Add vm_map_destroy()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-01kernel: vm_map: Remove misalignment checksIan Moffett
This commit removes misalignment checks and aligns VA and PA automatically Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-29kernel: vm: vm_get_bsp_ctx() -> vm_get_ctx()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-13kernel: vm: Add vm_map interfaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>