aboutsummaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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-30kernel: vm: Refactor map.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-30kernel: panic: Try to stop other processorsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-30kernel/amd64: machdep: Add cpu_halt_others()Ian Moffett
Halts all other processors except self Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-28kernel/amd64: ioapic: Fix declarationsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-28kernel/amd64: ioapic: Add ioapic_set_vec()Ian Moffett
Add helper to set vector in a redirection table entry Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-28kernel: devfs: Fix incorrect offset and buf sizeKaimakan71
Signed-off-by: Kaimakan71 <undefined.foss@gmail.com> Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-28kernel: vfs: Pass source vnode to vfsops.init()Kaimakan71
Signed-off-by: Kaimakan71 <undefined.foss@gmail.com> Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-27kernel: vfs: Implement sys_mount()Kaimakan71
Signed-off-by: Kaimakan71 <undefined.foss@gmail.com> Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-27kernel: kern_exec: Fix argp resize logicIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-27kernel: kern_exec: Fixup cleanup in execv()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel: kern_exec: Close file descriptorIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel: Add support for execv()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel: sched: Expose sched_init_stack()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel/amd64: frame: Add additional helpersIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel: sched: Move sched stack macros to sched.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel: cdefs: Add __likely() and __unlikely()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel/amd64: syscall: Allow RIP/RSP to be resetIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel: filedesc: Implement SEEK_ENDIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel: sched: Move sys_exit() from kern_syscall.cIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel: Implement basic loader_unload()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel: filedesc: Acquire mutex in read()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel: filedesc: Acquire mutex in write()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel: filedesc: Use mutex instead of spinlockIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel: Add support for mutex locksIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel: sched: Add support for early preemptionIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel: filedesc: Ensure write() fd is correctIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-25kernel: sched: Use exec_args for argp, envp, etcIan 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-25kernel: vm_map: Fix mmap() clobbering mem spaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-25kernel: termios: Include stdint.h if not kernelIan 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-24kernel: fbdev: Move ioctl stuff to sys/fbdev.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-24kernel: signal: Include sys/proc.h only in kernelIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-24kernel: fbdev: Add framebuffer ioctlIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-24kernel: Add ioctl supportIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-24kernel: device: Replace DEVICE_ALLOC()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-22kernel: auxv: Add AT_PAGESIZEIan 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-21kernel: sched: Ensure td is removed from queueIan Moffett
Upon sched_exit(), the thread should not be in the queue Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-21kernel: sched: Create idle threadIan Moffett
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-19kernel: vm: Document vm_object fieldsIan 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: filedesc: Handle multiple oflag bitsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>