summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-05-23init: Add 'kversion' and 'memstat' commandsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-23kernel: fs: Add procfs supportIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-23kernel: vm: Add alloc and avl statsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-23init: mshell: Handle empty commandsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-23kernel: vm: Keep track of vmobj countIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-23kernel: vm: Add memory statsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-22init: Add maintenance shellIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-21kernel: devfs: Add support for close hookIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
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: dev: Define stub open hooksIan 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: vfs: Cleanup sys/vfs.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-19libc: Add SYS_reboot defineIan 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-19libc: termios: Add missing `op` argIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-19libc: vsnprintf: Add '%d' supportIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-19libc: Add auxv_entry()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-19libc: Add termios.h with basic functionsIan 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-19build: Export sys/tty.hIan 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: vcons: Move vcons_process_output() callIan Moffett
Only process output in vcons_putstr() 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-18kernel: termios: Add ICANON flagIan 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-17libc: Add printf()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-17libc: Add initial vsnprintf() codeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-17docs: man: Create kconf(1)Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-17build: kconf: Ignore kconf binaryIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-17build: kconf: Remove useless fileIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-17kernel/amd64: machdep: Beep based on kernel configIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-17build: Introduce kconf for kernel configurationIan Moffett
The kernel will be configured by a per-arch config file. The config file for the AMD64 port exists at sys/arch/amd64/conf/GENERIC 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-15kernel/amd64: machdep: Cleanup processor_init()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-14kernel/amd64: Fix early panic triple faultIan Moffett
Check for a valid CPU structure and ensure the Local APIC base address has been set before trying to broadcast IPIs Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-14kernel/amd64: machdep: Reorganize functionsIan 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: isa: Add pcspkr supportIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>