aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-06-02kernel: ahci: Acquire global "io_lock" during cmdIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-02kernel/amd64: pmap: Add helper to set cache policyIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-02kernel/amd64: Refactor TLB flushing and PTE fetchIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-31kernel: ahci: Fix null checkIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-31kernel: ahci: Document workaroundIan Moffett
Documents a workaround for a possible hw/emulation quirk Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-31kernel: ic: Add initial AHCI driver codeIan Moffett
This commit introduces the initial implementation of the AHCI driver for Hyra. Support for reading and writing drives still need to be implemented and devices haven't been exposed to userland yet. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-28kernel: queue: Add missing header guardIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-28kernel: exec: Use dummy envpIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-28init: mshell: Better command parsingoldAptRock327
Commands are now parsed by checking whether a corresponding function exists using a command structure array. Signed-off-by: AptRock327 <dominik032009@gmail.com> Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-27kernel: panic: Write to TTY during panicIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-27kernel: loader: Fix loggingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-27kernel: syslog: Serialize kprintf()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-27kernel: syslog: Add extra commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-27kernel: syslog: Fix typo in commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-26docs: man: Make syslog(9) up to dateIan 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-25build: Add user linker scriptIan Moffett
This ensures the memory layout is in a proper state 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-24init: mshell: Remove useless length checkIan 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-23init: mshell: Allow reading from /proc/interruptsIan 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-23init: mshell: Don't use newline in print_file()Ian Moffett
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-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>