summaryrefslogtreecommitdiff
path: root/sys/include
AgeCommit message (Collapse)Author
4 dayskernel: pci: Add support for PCI ExpressIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
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: 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>
6 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>
6 dayskernel: cons: Make ANSI_BLUE a darker shadeIan Moffett
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 daysusr: libc: Add stat() in sys/stat.hIan 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: 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>
8 dayskernel: phy: Rename rtl8139 driver to rt81xxIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayskernel: Add sys/time.hIan 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: Add color attribute helpersIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskernel: video: Add /ctl/fb0/attrIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskernel: device: Harden cdev mmap() bounds checksIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskernel: syscall: Add SYS_mmap and SYS_munmapIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskernel: vm: Prepare for user mmap() interfaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
13 dayskernel: fbdev: Add /dev/fb0 char deviceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
13 dayskernel: vm: Add initial device pager implIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
13 dayskernel: vfs: Store device major/minor in vnodeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
13 dayskernel: device: Add mmap() hook for cdevswIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
14 dayskernel/amd64: pmap: Add PTE dirty bit handlingIan Moffett
Add support for managing the page table entry dirty bit. This will allow vm(9) to know when to page-out data to backing store, among other things. Signed-off-by: Ian Moffett <ian@osmora.org>
14 dayskernel/amd64: Add support for TLB shootdownsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
14 dayskernel/amd64: cdefs: Add __invlpg() asm wrapperIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
14 dayskernel/amd64: mp: Keep track of CPUs by indexIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-31kernel: spawn: Add support for SPAWN_WAIT flagIan Moffett
Add SPAWN_WAIT flag that causes spawn() to wait until the child process completes. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-31kernel: proc: Add proc_reap() for zombies, etcIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-31kernel: proc: Add PROC_SLEEP to pause threadsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-31kernel: sched: Add sched_switch_to()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-31kernel: proc: `spawn_data' -> `data'Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-30kernel: drivers: Add missing whitespaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-29kernel/amd64: hpet: Add hpet_time_nsec()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-28kernel: drivers: Add DRIVER_DEFER() macroIan Moffett
- Add DRIVER_DEFER() macro to schedule initialization for lower priority drivers - Expose `proc0' to the rest of the kernel Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-28kernel: syslog: Handle userspace kmsg loggingIan Moffett
- Add USER_KMSG option to configure if kernel messages should be logged in user contexts - Add syslog_silence() to silence kernel messages in user contexts if USER_KMSG is "yes" Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-28kernel: proc: Store kernel thread flag in `proc'Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-28kernel: exit: Handle killings of kernel threadsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-27kernel: disklabel: Improve clarityIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-27kernel: Add initial installer implIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-27kernel: Add md_halt()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-27sys: Add initial sys/disklabel.hIan Moffett
Adds initial sys/disklabel.h header which describes the ODT (OSMORA Disk Table) Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-26sys: cdefs: Add __used attributeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-26kernel: devfs: Add callback to request block sizeIan Moffett
Add bsize() callback within the bdevsw structure. This returns the number of blocks a block device supports at maximum. This result is *not* in bytes. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-26kernel: ahci: Detect max SATA sector countIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-26kernel: devfs: Detect block devicesIan Moffett
This commit also adds the S_IFBLK flag in sys/stat.h Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-22kernel: Optimize console & loggingQuinn Stephens
* Modified draw loops to use `fbdev_get_index()` less often. * Created `cons_fast_putch()`, then used it to implement `cons_putch()` and `cons_putstr()`. This way, when printing an entire string, the lock acquire/release and cursor hide/show will only happen once, instead of once per character. * Modified `syslog_write()` to use `cons_putstr()`. Signed-off-by: Quinn Stephens <quinn@osmora.org> Signed-off-by: Ian Moffett <ian@osmora.org>