aboutsummaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2024-07-12kernel: Add device layerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-11kernel: namei: Allow lookups farther than '/'Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-11kernel: vfs: Implement mountpoint namingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-11kernel: pci: Fix cap offset handlingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-11kernel/amd64: pci: Add support for PCI MSI-XIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-11kernel/amd64: bus: Move MMIO_OFFSET to bus.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-10kernel: nvme: Improve nvme_identify()Ian Moffett
Require an NSID and CNS value to be passed to the nvme_identify() function. This enables the caller to control what type of data is returned by the NVMe controller. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-10kernel/amd64: reboot: Halt all with REBOOT_HALTIan Moffett
This commit changes how reboot() handles REBOOT_HALT. Now instead of one core being halted, all cores will be halted through an IPI to a halt vector. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-10kernel/amd64: mp: Add missing "static"Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-10kernel: nvme: Add initial NVMe driver codeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-10kernel: Init driversIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-10kernel: vm: Add dynalloc_memalign()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-10kernel/amd64: bus: Fix memory mapping conflictsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-09kernel: Add sys/driver.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-09kernel/amd64: pci: Add function to map BARsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-09kernel/amd64: bus: Add bus abstraction layerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-09kernel/amd64: Add function to set cache policyIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-09kernel: cons: Improve char handling and add cursorIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-09kernel: pci: Add PCI device lookupsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-09kernel: Add PCI driverIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-09kernel: Call vm_init() before acpi_init()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-07kernel: cons: Ensure fb_mem isn't NULLIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-07kernel/amd64: Add serial debug loggingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-06kernel/amd64: Add 8250 UART driverIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-04kernel: init_main: Startup PID 1Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-04kernel/amd64: Add syscall support + SYS_exitIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-02kernel/amd64: machdep: Fix mistake in commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-02kernel/amd64: proc: Fix typo in commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-02kernel: proc: Remove PROC_INEXEC flagIan Moffett
This commit removes handling of the PROC_INEXEC flag as md_td_kick() takes care of the transfer to user mode in a cleaner way. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-02kernel/amd64: Handle the user GS segment registerIan Moffett
This commit introduces usage of swapgs to switch out the GS register with the user GS register. An md_td_kick() function is also introduced to start up user threads. The this_cpu() function uses the GS register to read the current CPU structure using a new "self" field. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-02kernel/amd64: Add INTRENTRY() and TRAPENTRY()Ian Moffett
Add macros that perform certain operations before invoking the actual handler. This will be useful in the future for more complicated operations that need to be done before the handler is ran. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-02kernel/amd64: Add missing copyrightIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-01kernel: exec: Add execve()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-01kernel/amd64: proc: Add stack init func for execIan Moffett
Add stack initialization code for exec functions. This new code initializes values on the stack, including argc, argv, and the auxiliary vector. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-30kernel/amd64: proc: Add setregs()Ian Moffett
This function will be useful for things like exec in order to setup registers which are machine dependent. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-30kernel: sched: Add exit1()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-30kernel: sched: Mark sched_enter() as __deadIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-30kernel: cdefs: Add __deadIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-30kernel/amd64: pmap: Add pmap_destroy_vas()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-29kernel/amd64: lapic: Improve accuracy of commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-29kernel/amd64: lapic: Add support for IPIsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-29kernel: elf: Cleanup error handlingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-29kernel/amd64: proc: Update outdated commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-29kernel: elf: Fix memory leakIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-29kernel: elf: nd.vp -> vpIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-28kernel: fork: Ensure 'newproc' is zeroedIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-28kernel: elf: Add ELF64 loaderIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-28kernel: Add sys/elf.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-28kernel: vfs: Add vnode refcountIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-28kernel: vfs: Don't destroy vnode if errorIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>