summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
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>
2024-04-13kernel: filedesc: Increment offset per read()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-10kernel: create_dev() -> device_create()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-10kernel: Get rid of invalid_uaddr()Ian Moffett
Use signal_raise(NULL, SIGSEGV) instead Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-10kernel: signals: Add initial signal implementationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-10kernel: sched: Lock thread upon sched_exit()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-10kernel: fs: Add devfsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-10kernel: filedesc: Check fd_desc before using itIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-10kernel: filedesc: Cleanup whitespaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-10kernel: filedesc: Fix memory leak in sys_read()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-09kernel: vfs_lookup: Try looking up in mountlistIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-09kernel: vfs_mount: Fix mount codeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-09kernel: vfs_subr: Don't require leading '/'Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-09kernel: vfs_lookup: Start lookup at idx 1Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-09kernel: sched: Remove useless whitespaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-09kernel/amd64: Add backtrace support for panic()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-08kernel: Add device descriptorsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-06kernel: Check copyin() statusIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-06kernel: sched: Load init by itselfIan Moffett
This is temporary Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-04kernel: sched: Pass init auxv to dynldIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-31kernel: syslog: Cleanup logging routinesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-28kernel: Add driver subsystemIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-27kernel: Implement lseek()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-27kernel: vfs: Add getattr vopIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-26kernel: Use 'sio_txn' for file I/OIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-26kernel: filedesc: Fix typo in commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-26kernel: filedesc: Add more commentsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-26kernel: Add initial read() implementationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-26kernel: Add sys_close()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-26kernel: Add initial open() implementationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-26kernel: filedesc: Create MAX_RW_SIZE defineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-26kernel: Add copyinstr() routineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-25kernel: filedesc: Return status in fd_alloc()Ian Moffett
It is better for fd_alloc() to return the status and have one of the arguments point to an output than have fd_alloc() return the allocated file descriptor just like that. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-25kernel: vfs_lookup: Return -EINVAL instead of -1Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-22kernel: filedesc: Handle count of 0Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-21kernel: sched: Fix stack init codeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-20kernel: Require len in vcons_putstr()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-19kernel: syscall: Add sys_write()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-19kernel: syslog: Make syslog_screen externIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-18kernel: sched: Fix PID assignmentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-18kernel: Add copyin() and copyout() routinesIan Moffett
This commit adds two new functions, copyin() and copyout() for kernel to userspace access and vice versa. These functions ensure the userspace address being accessed actually belongs to the process running by performing address range checks, thereby preventing bad addresses being passed to syscalls. Signed-off-by: Ian Moffett <ian@osmora.org>