summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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>
2024-05-14kernel: i8254: Add channel 2 port defineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-14kernel: tty: Add tty_attach()Ian Moffett
This commit adds a new routine called tty_attach(). This routine allows a TTY to be registered with the system and have a device file associated with it. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-14kernel: vsnprintf: Use int instead of int64_tIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-14kernel: devfs: Add cdev_read()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-12kernel/amd64: i8042: Prevent blinking capslock LEDIan Moffett
Holding down the caps-lock key would result in the LED blinking rapidly which is obviously not normal. This commit corrects that behavior. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-12kernel/amd64: isa: Add i8042 driverIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-12kernel: tty: Add initial TTY codeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-12kernel: vcons: Support ASCII_BS for backspaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-12kernel: vcons: Don't touch termiosIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-07kernel: nvme: Use PCI_BAR_MEMBASE() to fetch baseIan Moffett
Use PCI_BAR_MEMBASE() instead of manually masking off bits to ensure the cleanness of the driver. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-07kernel: pci: Add macros for fetching BAR baseIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-07libc: stdlib: POSIX-compliant randomnessAptRock327
This commit implements two functions: rand(), and srand() which together allow for the generation of pseudorandom numbers. Signed-off-by: AptRock327 <dominik032009@gmail.com> Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-07kernel/amd64: trap: Remove unnecessary whitespaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-07kernel: vm_fault: Ref vmobj before usageIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-07kernel/amd64: tss: Ensure stacks are alignedIan Moffett
When allocating a kernel stack, ensure it is aligned on a 16-byte boundary. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-07kernel/amd64: trap: Temporarily disable interruptsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-06kernel: vm_fault: Fix 'td' assignmentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-05kernel: vm_fault: Refactor demand pagingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-05kernel: pci: Remove unused variableIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>