summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2024-05-21kernel: filedesc: Fix fd_from_fdnum()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-21kernel: vfs: Add support for close VOPIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-21kernel: sched: Fix commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-21kernel: Initial sched rewriteIan Moffett
- Introduce dynamic scheduling policy - Introduce MLFQ scheduling - Clean up a lot of code Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-20kernel: tty: Remove useless commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-20kernel: tty: Improve hook naming consistencyIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-19kernel: tty: Improve comment in tty_dev_read()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-19kernel: tty: Define TTY open hookIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-19kernel: vfs: Add support for open hookIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-19kernel: Add reboot() and reboot syscallIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-19kernel: tty: Implement tty_ioctl()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-19kernel: sched: Align 'tdq_lock' on cache line sizeIan Moffett
The lock should be aligned on a cache line boundary so it isn't in a cache line with other data. This is important for 'tdq_lock' as it is used by every processor which constantly acquires and releases it. This alignment can reduce how violently cache lines bounce between processor local caches. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-18kernel: tty: Handle input processing betterIan Moffett
- Fix copying logic in tty_read() - Handle ICANON correctly - Add ECHO c_lflag bit - Add TTY_SOURCE_DEV and TTY_SOURCE_RAW defines Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-18kernel: tty: Add tty_putstr()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-18kernel: tty: Handle ICANONIan Moffett
Add basic handling for canonical mode Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-18kernel: syslog: Remove useless variableIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-17kernel: tty: Append to ring before length checkIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-16kernel: panic: Call intr_mask() firstIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-16kernel: sched: Move loader code away from schedIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-14kernel: init: Cleanup whitespaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-14kernel: machdep: Add machine_panic() + panic beepIan Moffett
machine_panic() handles things like backtracing, beeping the speaker and halting the processor. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-14kernel: tty: Add tty_attach()Ian Moffett
This commit adds a new routine called tty_attach(). This routine allows a TTY to be registered with the system and have a device file associated with it. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-12kernel: tty: Add initial TTY codeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-12kernel: vcons: Don't touch termiosIan 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-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: sched: Move sched stack macros to sched.hIan 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: 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-24kernel: Add ioctl supportIan 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-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-18kernel: filedesc: Handle multiple oflag bitsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-17kernel: vfs_subr: Add vfs_write()Ian Moffett
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-13kernel: signal: Fix deadlock in signal_handle()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>