summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
12 dayslibc: string: Add POSIX strlen()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayssys: unistd: Add standard stream file numbersIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
13 dayskern/amd64: Support APIC inter-processor interruptsIan Moffett
This commit introduces support for sending inter-processor interrupts on the mainbus to other cores on the machine. Signed-off-by: Ian Moffett <ian@osmora.org>
13 dayskernel: vm: Remove redundant newlineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
13 dayssys: Add BSD sys/tree.h portIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
13 dayskernel: filedesc: Allocate standard streamsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
13 dayssys: Add initial sys/stat.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
13 dayssys: Add sys/fcntl.h for file I/O Related bitsIan Moffett
Introduce initial fcntl flags for file related I/O. This is to be included on both the user and kernel side. Signed-off-by: Ian Moffett <ian@osmora.org>
14 dayslibc: Add resource border crossing interfaceIan Moffett
Introduce a new libc cross() function which acts as a wrapper to the SYS_cross system call. Signed-off-by: Ian Moffett <ian@osmora.org>
14 dayslibc: Add ssize_t to sys/stddef.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
14 dayslibc: crt: Call main function from _startIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
14 dayslibc: Build all cfilesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
14 dayskern: mac: Make mac_map() return ssize_tIan Moffett
The map callback within the MAC ops returns ssize_t, therefore the mac_map() wrapper should return the same Signed-off-by: Ian Moffett <ian@osmora.org>
14 dayslibc: Add stddef.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
14 dayssys: Add sys/_null.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
14 daysMerge branch 'master' into devIan Moffett
14 dayslibc: Add stdint.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
14 dayslibc: Ensure system includes are syncedIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-23usr: libc: Add libc syscall interfaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-23kern: security: Add initial support for MACIan Moffett
This commit introduces initial support for mandatory access control. As one may recall, L5 follows "everything is memory". In order to interact with a resource, a process must request it from the kernel in the form of a (sometimes) syncable memory buffer. Each resource as well as processes have an access level, if a process attempts to request a resource with a higher access level than it, the request is rejected by the kernel. However, if a process has a greater than or equal access level as a resource, the request can be granted. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-23kern/amd64: proc: Deallocate mapped frames on exitIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-23usr/amd64: Discard .eh_frame and .note sectionsIan Moffett
These sometimes cause issues so we are better off just stripping them from the final binary. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-23build: Properly copy to / clean up iso_rootIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-23build: Use silent builds in toplevel MakefileIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-23build: Use iso_root/ for iso generationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-22kern: ahci: Bring up ports via COMRESETIan Moffett
As we rely on resetting the controller via GHC.HR, we'll need to re-establish a link with each implemented port to actually bring them online. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-22kern: ahci: Replace printf calls with dtrace()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-22kern: ahci: Include missing io/dma/alloc.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-22kern: ahci: Add initial port bring-up logicIan Moffett
This commit introduces this initial bring-up logic for ports on the HBA. We have allocated the command headers and each FIS RX area for each respective command slot. More work to be done but this lays the groundwork Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-22kern: ahci: Fix typo in dtrace() macroIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-22kern: dma: Zero new memory by defaultIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-22kern: ahci: Keep track of number of command slotsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-22kern: ahci: Add further ahcivar.h defs for FIS/HDRIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-22kern: dma: Add DMA address helpersIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-21kern: omar: Implement image-like lookup VOPIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-21kern: Mount root filesystem in vfs_init()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-21kern: vfs: Add support for image-like pathsIan Moffett
Typically filesystems are tree-like, however certain filesystems in the form of images have fixed paths baked into them. This optimizes handling so there isn't a need to unpack it into a rootfs/tmpfs Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-21kern: vnode: Add filesystem specific data to vnodeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-21sys: vnode: "driver" -> "filesystem"Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-21kern: vfs: Add lookup by name helperIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-21kern: ahci: Only support 64-bit HBAs for nowIan Moffett
Abort if the host controller does not support 64-bit addressing Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-21kern: ahci: Add initial port startup logicIan Moffett
Here we ensure that the port is in a stopped state, we have also added port descriptor lists to keep track of each port. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-21kern: ahci: Scan for implemented ports with PI regIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-21kern: bus: Simply return bus_space, don't remapIan Moffett
As of now, the bootloader handles setting up the MMIO regions and we'll need huge page support (2 megs) for reassigning MMIO space Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-21sys: Add bit operations headerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-21kern: ahci: Add debug tracingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-21kern: ahci: Ensure HBA is in AHCI-mode after resetIan Moffett
The global host control register (described by section 3.1.2 in the AHCI spec) has an HBA reset bit which resets *everything* to a known state. This means that after the reset, we'll have to indicate to the HBA that we want to speak to it over the AHCI interface. We do it once before the reset if needed, then we do it again after. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-21kern: ahci: Add AHCI host bus adapter reset implIan Moffett
This commit introduces this initial ahci_init() logic by resetting HBA state on startup. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-21kern: ahci: Add AHCI register headerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-21kern: clkdev: Add callback to get elapsed timeIan Moffett
Add new clock device callback to get the elapsed time from the timer being initialized, in microseconds. Signed-off-by: Ian Moffett <ian@osmora.org>