aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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>
2024-05-02kernel: pci: Refactor pci_set_device_info()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-02kernel: pci: Add more register definitionsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-01kernel: vm_map: Refactor mmap()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-01kernel: vm_vnode: Ref the virtual memory objectIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-01kernel: vm_map: Ensure mmap len is always alignedIan Moffett
Physical memory pages to be allocated is 'len / GRANULE'. Previously, if 'len' was less than the machine page-size, the amount of pages to allocate would be 0 causing the map to fail. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-05-01libc: elf: Fix header guardIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-30kernel: vm: Refactor map.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-30kernel: panic: Try to stop other processorsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-30kernel/amd64: machdep: Add cpu_halt_others()Ian Moffett
Halts all other processors except self Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-29man: device(9): Add device(9) man pageIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>