summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2024-05-27kernel: syslog: Fix typo in commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-26kernel: Fixup logging to work with syslog changesIan Moffett
This commit removes the KINFO(), KERR(), ... macros Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-26kernel: syslog: Add timestamp to loggingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-26kernel/amd64: Support fetching time since startupIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-26kernel: string: Support '%0Nd' formattingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-25kernel: vm_map: Fix cleanup in munmap()Ian Moffett
- vm_obj_destroy() handles vnode cleanup so we don't need to worry about that. - No need to acquire the lock. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-25kernel: vm_map: Fix deadlockIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-25kernel: vm: Fix vm_obj_destroy()Ian Moffett
- Set vp->vmobj to NULL *only* if vp is set - Refcount starts at 0, not 1 - Refcount check comes first Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-25kernel: vm: Make vmobj ref start at zeroIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-24kernel: vm: Make pmap_create_vas() return intIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-24kernel/amd64: pmap: Fix check for listed CPUsIan Moffett
Only perform a TLB shootdown if the number of cores listed is greater than one. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-24kernel: cpu: Add cpu_count() for reading 'ncpu'Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-23kernel/amd64: trap: Handle cleanup before signalIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
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 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-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>