summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
4 dayskernel: pci: Add 'cam_hook' structure for PCI I/OIan Moffett
This change improves flexibility and allows for easy future integration of the PCI Express Enhanced Configuration Access Mechanism (ECAM) Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: Deprecate kern_instl for /usr/sbin/installIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: ahci: Return length in sata_dev_rw()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: syscall: Add SYS_lseekIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: filedesc: Add fd_seek() as kernel lseek()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: filedesc: Add _KERNEL guardIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskernel: ahci: Fix issue of undetectable devicesIan Moffett
- Only check PxSCTL.SET within the port reset logic - Do not create device file for ATAPI devices (yet) Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskernel: ahci: Improve port reset logicIan Moffett
- Set PxCMD.SUD if the HBA supports staggered spin-up to ensure the device will be detectable. - Wait for the device link to be established - Detect and log SATA link speed Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskernel/amd64: bus: Make MMIO_OFFSET same as HDDMIan Moffett
Drivers may be invoked even while other processes are start up and therefore their MMIO mappings must be shared. Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskernel: cons: Make ANSI_BLUE a darker shadeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel/amd64: Flush TLB per cache attr updateIan Moffett
- Use pmap_update_tbl() to ensure that the TLB is flushed when caching attributes are updated. Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: vfs: Add SYS_access syscallIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: vfs: Release vnode in vfs_dostat()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: vfs: Use pathbuf in vfs_dostat()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: vfs: Remove unused includeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: spawn: Wait on both PROC_SLEEP + PROC_ZOMBIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: spawn: Set PROC_WAITED before td enqueueIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: exit: Ensure PROC_WAITED is unset on exitIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysusr: libc: Add stat() in sys/stat.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: physmem: Only set bits if memory is foundIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: proc: Make per-process flags volatileIan Moffett
The per process flags field is a frequently modified/read field and MUST NOT give stale data. Be very sure that the compiler does not optimize away accesses. Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: sched: No yield on wait + intoff on yieldIan Moffett
Temporary workaround for issue relating to hangs on process yield with a sleeping parent Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: cons: Add ANSI cursor pos reset sequenceIan Moffett
- Add support for the "\033[H" ANSI escape sequence to reset the cursor to the 'home' position Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: cons: Invert console cursor colorIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: spawn: Ensure pathbuf is zeroedIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel/amd64: Add `alloc` to pmap_update_tbl()Ian Moffett
Add an `alloc' paramater to pmap_update_tbl() to ensure that functions like pmap_map() and pmap_unmap() have control over, whether or not to allocate new page table entries. This is useful as unmapping memory does not require new page table entries to be allocated and doing so anyways may result in undefined behaviour such as hangs. Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: stat: Fix getattr result pointerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: spawn: Improve wait sleep handlingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: sched: Skip sleeping threads and get nextIan Moffett
If a thread is sleeping, skip it and try the next thread. Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: sched: Allow sleeping TDs to be enqueuedIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: physmem: Allocate unfragmented phys memoryIan Moffett
- Ensure a contiguous region of physical memory is allocated in vm_alloc_frame() - Fix issues with physical memory being clobbered with excessive allocations - Clean up frame walk loop Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: physmem: Ensure base is page alignedIan Moffett
- Use ALIGN_UP() on base address in vm_free_frame() Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: exit: Handle stack VA/PA in proc_reap()Ian Moffett
User stacks are identity mapped and kernel stacks are not. Handle this properly or else suffer the consequences. Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: spawn: Return process exit status on failIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel: exit: Wake up parent *only* if asleepIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskernel/amd64: proc: Cleanup user stack vm_map()Ian Moffett
- Add prot var to keep track of flags to map with - OR prot flags with PROT_USER if rpl is 3 Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayskernel: phy: Rename rtl8139 driver to rt81xxIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayskernel: rtl8139: Defer RTL8139 initializationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayskernel: nvme: Defer NVMe initializationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayskernel/amd64: isa: Add AT PC MC1468XX driverIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayskernel: Add sys/time.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayskernel/amd64: Save %RCX before calling handlerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel: xhci: Allocate n bytes for scratchpadIan Moffett
Allocate in bytes rather than pages to keep things simple and fix broken logic. Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel/amd64: isa: Add /dev/beep for pcspkrIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel: stub: Always show exceptions in userlandIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
10 dayskernel: cons: Add initial ANSI escape seq implIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
10 dayskernel: cons: Handle ASCII_NULIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
10 dayskernel: cons: Add color attribute helpersIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
10 dayskernel: vm: Support NULL `addr' for private mmap()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
10 dayskernel: vm: Map at `va + page_off'Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>