aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-03-26kernel: filedesc: Create MAX_RW_SIZE defineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-26kernel: Add invalid_uaddr() helperIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-26kernel/amd64: tss: Do not allow userspace port I/OIan 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-25usr.sbin: init: Fix MakefileIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-25kernel/amd64: Remove "AP bootstrap done" messageIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-24libc: build: Fixup MakefileIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-24libc: stdint: Add uintptr_tIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-24kernel/amd64: machdep: Init PCI driverIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-24libc: build: Use target compilerIan 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-21libc: Add SYS_writeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-21libc: Implement strlen()Ian 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-20kernel: pci: Fix commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-20kernel: dev: Add PCI driverIan 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: vnode: Add write() vopIan 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-19kernel: vcons: Add vcons_putstr() routineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-19kernel: vnode: Update commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-19kernel: syscall: Fix syscall orderIan 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>
2024-03-17kernel: loader: Keep track of program addr rangeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-17kernel: vm: Add vm_range structureIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-17Merge branch 'user' into devIan Moffett
2024-03-17libc: Remove useless definesuserIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-16kernel,libc: syscall: Improve syscall codeIan Moffett
- Remove the SYS_debug syscall - First syscall starts at 1 Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-16kernel: syscall: Remove syscall_args.retIan Moffett
It is better to just return a value within the syscall handler and have that passed down to __syscall() like that Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-16kernel: sched: Cleanup context switch commentsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-16libc: auxv: Update header guardIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-16libc: auxv: Move auxv.h to sys/auxv.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-16libc: auxv: Add missing includeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-15libc: Add size_t typeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-15libc: elf: Include correct headerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-15libc: Reimplement stdint.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-15libc: Add bits/_types.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-15kernel: Add basic file descriptor supportIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-15kernel: sched: Use this_td() to get threadIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-15kernel: sched: Add routine to get current threadIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-15kernel: vfs: Implement vfs_path_to_node()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-15kernel: vfs: Add fs capabiltiesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-15kernel: vfs: Allow optional fs store within vnodeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-15kernel: initramfs: Fix vtype logic bugIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-15kernel: vfs: Fix typo in commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-15kernel: initramfs: Fix indentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>