summaryrefslogtreecommitdiff
path: root/src/sys/vm
AgeCommit message (Collapse)Author
11 dayskern: vm: Don't clobber original map specIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
11 dayskern: proc: Protect mapping list with spinlockIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskernel: vm: Remove redundant newlineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-19kern: proc: Keep track of mapped areas with rangesIan Moffett
This commit adds a virtual memory range queue to the process descriptor in order to keep track of mapped pages and free their respective frames upon program exit. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-17kern: Make memmap dump configurable via kconfIan Moffett
Use the OSMORA kernel configuration framework to add options for L5Lunos to parse during early startup. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-16kern: vm: Implement lazy allocation for vm_map()Ian Moffett
Introduce lazy allocation in the vm_map() function. When passing a zero value to any of the base address fields of the map spec, allocate our own memory. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern: vm_map: Add guard pages at end of mappingsIan Moffett
Place a guard page at the end of every mapping to catch overflows before they start corrupting the system. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern: vm: Add MI vm_map() functionIan Moffett
Introduce a machine independent mechanism to map multiple pages through the new vm_map() function Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15vm: physseg: Use new OS nameIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15os/amd64: Make MMU header standard per archIan Moffett
Lunos's virtual memory system is split into two parts, the machine dependent MMU layer and the machine independent layer. The MMU side exposes a standard bridge header that allows the MI layer to interface with the MD layer. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern: os: Add initial kalloc subsystemIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern: Add TLSF allocator portIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-14kern: vm: Implement page mapping and VASesIan Moffett
This commit implements an interface to allow other parts of Lunos to talk to the MMU: - Added the 'vas' structure as the virtual address space - Added MMU specific prot flags - Added mmu_map_single() to map pages - Added mmu_this_vas() to grab the current VAS ... Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-14kern/amd64: vm: Add initial MMU skeleton logicIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-14os: vm: Add physical memory managerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>