summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
3 dayssys: Make proper sys/types.h + add clang nostdincexptIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: tlsf: Include proper headersIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayssys: limits: Add CHAR_BITIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: vm: Add munmap() implIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: systm: Include assert.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: systm: Add __sigraise() helperIan Moffett
Adds routine to raise a signal on the fly for the current calling thread. Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: vm: Add initial mmap() implIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: vm: Fix vm_page insertionsIan Moffett
Ensure vm_page entries are properly kept track of. This commit additionally simplifies and cleans up vm_pageinsert() Signed-off-by: Ian Moffett <ian@osmora.org>
11 dayskernel/amd64: bus: Check bus_set() statusIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
11 dayskernel: panic: Add hcf() and bas()Ian Moffett
hcf(): Halt and catch fire (used for debugging mostly) bas(): Burn and sizzle - internal usage Signed-off-by: Ian Moffett <ian@osmora.org>
11 dayskernel: cdefs: Introduce __cold and __dead_coldIan Moffett
The __cold macro is used for code paths that are rarley taken while the __dead_cold macro is used for __cold routines that never return. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-03-14kernel: vm: Only hold pgres with timeoutIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-03-14Merge branch 'expt'Ian Moffett
2025-03-14kernel: vm: Add initial anonymous pager sourceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-03-09kernel: vm_map: Remove extra leading whitespaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-03-09kernel: pager: Make vm_vnops externIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-03-07kernel: cdefs: Add __barrier() defineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-28kernel: termios: Remove duplicate ISTRIPIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-28kernel: termios: c_cc is of type cc_tIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-28kernel: driver: Remove trailing newlineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-22kernel: Add POSIX termios.h headerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-22kernel: cons: Add lock around root consoleIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-22kernel: dev: Add /dev/consoleIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-22kernel: devfs: Add support for write()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-22kernel: vfs: Add support for write()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-21Merge branch 'expt'Ian Moffett
Hyra v1.4
2025-02-21kernel: Update kernel log styleIan Moffett
Kernel logs must now all be lowercase for consistency. A new style called Peripheral Description Notation (PDN) has also been introduced to describe devices. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-20kernel/amd64: i8237: Use word register for modeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-20kernel/amd64: i8237: Optimize set channel selectIan Moffett
There is no need for an intermediary register before setting %AL. This commit removes redundant instructions to reduce the amount of cycles used for this operation. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-20Merge branch 'expt'Ian Moffett
2025-02-20kernel: ahci: Ensure HBA is AHCI awareIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-20Merge branch 'expt'Ian Moffett
2025-02-20kernel: ahci: Improve reset logic + cleanupIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-20kernel: ahci: Add AHCI spinwait timeoutIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-20kernel: ahci: __BIT() -> BIT()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-20Merge branch 'expt'Ian Moffett
2025-02-20kernel/amd64: isa: Add initial i8237 driver implIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-20kernel: ahci: Conform to OSMORA C styleIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-20kernel/amd64: isa: Add initial i8237 driver implIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-19kernel/amd64: bus: Add bus resource interfaceIan Moffett
This commit introduces a bus resource abstraction. A bus resource encapsulates bus specific information and semantics. Along with abstracting away bus specific details and providing an overall smoother interface, this additionally provides flexibility, access control and security by keeping track of permissions and allowing things to be turned on or off. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-19kernel: ahci: Clean up includesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-19kernel: ahci: Fix up styleIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-19kernel: ahci: Map ABAR and perform HBA resetCaelus
Signed-off-by: Ian Moffett <ian@osmora.org> Signed-off-by: Caelus <neptune@osmora.org>
2025-02-18kernel: ahci: Add necessary AHCI related headersIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-18kernel: ahci: Add initial skeletonIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-18kernel: param: Add bit MASK() macroIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-16project: Update copyright date to 2025Ian Moffett
Was supposed to happen on Jan 1, sorry! Happy late new year! Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-15kernel/amd64: i8254: freq_hz -> divisorIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-15kernel: signal: No need to compare ksig_listIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-15kernel/amd64: lapic: Get rid of unused functionIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>