aboutsummaryrefslogtreecommitdiff
path: root/sys/vm
AgeCommit message (Collapse)Author
2024-05-07kernel: vm_fault: Ref vmobj before usageIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-06kernel: vm_fault: Fix 'td' assignmentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-05kernel: vm_fault: Refactor demand pagingIan 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_vnode: Ref the virtual memory objectIan 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-20kernel: vm: Add vm_object refcountIan 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-18kernel: vm: Add device pagerIan 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: Add vnode pagerIan 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-28kernel: vm_dynalloc: Add dynalloc_memalign()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-28kernel: vm_dynalloc: Remove TODOsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-14kernel: vm: Add routine to get kernel vasIan 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>
2024-01-12kernel: vm: Make vm_get_bsp_ctx() return pointerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-10kernel: vm: Cleanup pageframe allocationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-01project-wide: Make copyright year a rangeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-01project-wide: Update copyright yearIan Moffett
Happy new year!! Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-25kernel: vm_physseg: Fix allocation issueIan Moffett
We should check free_count before possibly resetting it. We don't want horrible things to happen. Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-13kernel: vm: Ensure calls are serializedIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-13kernel: vm: `cpu_vm_ctx' -> `vm_ctx'Ian Moffett
This commit cleans up the naming of the `cpu_vm_ctx' as it already implies it is per core Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-13kernel: vm: Add support for dynalloc pool resizeIan Moffett
This commit creates a wrapper that allows resizing of a memory pool created by dynalloc() Signed-off-by: Ian Moffett <ian@osmora.org>
2023-11-24kernel: Fixup VM header namingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2023-11-24kernel: vm: Port TLSF allocatorIan Moffett
This commit adds a Two-Level Segregated Fit memory allocator port to the Hyra kernelspace. Signed-off-by: Ian Moffett <ian@osmora.org>
2023-11-13project-wide: Update project namesigsegv7
Update project name to avoid conflicts with the name of Amazon's new 'Vega' Smart Device Operating System. Signed-off-by: sigsegv7 <ian@osmora.org>
2023-10-11kernel: vm: pmap.h -> vm_pmap.hsigsegv7
Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-10-11kernel: vm: Create vm_init()sigsegv7
Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-10-11kernel: vm: Add vm_zero_page() helpersigsegv7
Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-10-07kernel: vm: Add pageframe allocationsigsegv7
This commit introduces pageframe allocation logic to the Vega virtual memory subsystem. Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-10-07kernel: vm: vm.c -> vm_init.csigsegv7
Signed-off-by: sigsegv7 <ian@vegaa.systems>