summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-06-05kernel: init_main: Init virtual memory subsystemIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-05kernel/amd64: Add initial LAPIC codeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-04kernel/amd64: spectre: Disable IBRS by defaultIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-04kernel/amd64: Add I/O APIC driverIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-04kernel/amd64: acpi: Support parsing MADTIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-04kernel: Add sys/errno.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-04kernel/amd64: Support IBRSIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-04kernel/amd64: trap: Add logging for debuggingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-04kernel: vm: Add physical memory allocatorIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-04kernel: lib: Add memset()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-04build: Fix versionIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-04kernel: Add ALIGN_UP/ALIGN_DOWN macrosIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-04kernel: Add bitmap helper macrosIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-04kernel: syslog: Print timestamp in kprintf()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-04kernel/amd64: Add HPET driverIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-04kernel: Add initial ACPI codeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-04kernel: Add timer abstractionIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-04kernel: Add panic()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-04kernel: Add mmio(9)Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-04kernel: lib: Add memcmp()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-04kernel: Add initial virtual memory codeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-04project: Initial commitIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-03kernel: pci: Require mapping BAR using bus_map()Ian Moffett
This commit gets rid of pci_map_bar() as some devices have their base address spanning mulitple BARs. This change also exposes PCI bar size logic through pci_bar_size() Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-02kernel: ahci: Add missing whitespacedevIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-02kernel: ahci: Add missing close() hookIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-02kernel: ahci: Add SATA read/write supportIan Moffett
This commit introduces SATA read/write support and exposes SATA devices to userland as /dev/sdN files Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-02kernel: pci: Add PCI BAR mapping routineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-02kernel/amd64: bus: Add bus abstraction layerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
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>