summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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>
2024-04-28kernel/amd64: ioapic: Fix declarationsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-28kernel/amd64: ioapic: Add ioapic_set_vec()Ian Moffett
Add helper to set vector in a redirection table entry Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-28kernel: devfs: Fix incorrect offset and buf sizeKaimakan71
Signed-off-by: Kaimakan71 <undefined.foss@gmail.com> Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-28kernel: vfs: Pass source vnode to vfsops.init()Kaimakan71
Signed-off-by: Kaimakan71 <undefined.foss@gmail.com> Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-28libc: Add execv()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-28libc: Add mount()Kaimakan71
Signed-off-by: Kaimakan71 <undefined.foss@gmail.com> Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-27kernel: vfs: Implement sys_mount()Kaimakan71
Signed-off-by: Kaimakan71 <undefined.foss@gmail.com> Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-27kernel: kern_exec: Fix argp resize logicIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-27kernel: kern_exec: Fixup cleanup in execv()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel: kern_exec: Close file descriptorIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel: Add support for execv()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel: sched: Expose sched_init_stack()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel/amd64: frame: Add additional helpersIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel: sched: Move sched stack macros to sched.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel: cdefs: Add __likely() and __unlikely()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel/amd64: syscall: Allow RIP/RSP to be resetIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-04-26kernel: filedesc: Implement SEEK_ENDIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>