summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2024-05-23kernel: sched: Fix PID assignmentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-23kernel/amd64: Log messages during user faultsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-23kernel: syslog: Add kernel message bufferIan Moffett
This commit introduces the kernel message buffer and makes system messages no longer be written to the TTY after kernel init. The kernel message buffer can be read from /proc/kmsg Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-23kernel/amd64: mp: APICTMR -> LAPIC-TMRIan Moffett
"LAPIC-TMR" seems cleaner than "APICTMR" Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-23kernel/amd64: pmap: Add support for TLB shootdownsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-23kernel: intr: name -> sourceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-23kernel/amd64: lapic: Add IPI_SHORTHAND_NONEIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-23kernel/amd64: pmap: Add pmap_init()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-23kernel: intr: Fix garbage outputIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-23kernel: intr: Remove useless includeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-23kernel/amd64: isa: Add i8042 IRQ statIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-23kernel/amd64: mp: Add local timer statIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-23kernel: procfs: Add support for /proc/interruptsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-23kernel/amd64: mp: Don't allocate seperate ciIan Moffett
The machdep layer already handles this Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-23kernel: procfs: Write newline after outputIan 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-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-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 commentsched-rewriteIan 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-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-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-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>