aboutsummaryrefslogtreecommitdiff
path: root/sys/include
AgeCommit message (Collapse)Author
2024-02-28kernel: errno: Update errno.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-26kernel: Add initial ELF loader implementationIan Moffett
This is the initial ELF loader implementation, this will obviously need some fixups and refactoring in the future but it works as of now. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-26kernel: pmap: Use PROT_ instead of PMAP_ prefixIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-26kernel: Add elf.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-26kernel: Add strcmp()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-26kernel/amd64: pmap: Add support for creating VASIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-26kernel/amd64: Drop 'asm' directoryIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-26kernel/amd64: lapic: Add support for sending EOIsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-26kernel: sched: Create schedvar.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-25kernel: vcons: Add cursor supportIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-25kernel: Move video console codeIan Moffett
This commit introduces a video console driver to Hyra and replaces that weird tty.c file used only for video console logic Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-24kernel/amd64: cpu: Fix logic bugIan Moffett
This commit fixes a logic bug in amd64_isr_intr_mask(). We want to return a bool that indicates if interrupts are masked (bit 9 of rflags unset) Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-23kernel: Add initial scheduler implementationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-23kernel/amd64: frame: Add macro to init trapframeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-23kernel/amd64: frameasm: Add missing registerIan Moffett
This commit fixes a bug in pop_trapframe_ec, in which a register was missing. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-22kernel/amd64: lapic: uint32_t -> size_tIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-22kernel/amd64: Create per-processor context storageIan Moffett
This commit introduces per-processor context storage within the IA32_KERNEL_GS_BASE MSR Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-18kernel/amd64: trap: Remove useless functionIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-15kernel/amd64: cpu: Prefix machdeps with cpu_Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-14kernel: queue: Keep track of element countIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-14kernel: cpu: Add hint_spinwait()Ian Moffett
This commit introduces a macro that must exist per architecture (even if it does nothing) to ensure it is machine independent. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-14kernel: Add __TRY_CALL() macroIan Moffett
This commit adds a macro to make testing if weak functions are implemented, then running them, less messy. This allows you to do so in one line. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-14kernel: machdep: Remove __weak for some routinesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-14kernel/amd64: hpet: HPET is architecture specificIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-13kernel: proc: Fix field within proc structIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-11kernel/amd64: acpi: Fetch LAPIC base separateIan Moffett
This commit creates a acpi_get_lapic_base() so we don't have to parse the MADT each time we want the Local APIC base. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-11kernel: sched: Add initial sched related codeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-11kernel: Add machine independent CPU routinesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-11kernel: cdefs: Add __noreturn macroIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-04kernel/amd64: lapic: Add support for sending IPIsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-17kernel: Add serial logging supportIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-13kernel: vm: Add vm_map interfaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-13kernel: assert: Be more verboseIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-13kernel/amd64: pmap: Add pmap_unmap()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-12kernel/amd64: pmap: Add pmap_map() routineIan Moffett
Add pmap_map() routine for creating virtual memory mappings. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-12kernel/amd64: vas: Add more documentationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-12kernel/amd64: asm: Add vmem tlb headerIan Moffett
Add TLB header to facilitate TLB cache operations Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-12kernel: types: Add vmem specific typesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-12kernel: vm: Make vm_get_bsp_ctx() return pointerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-11kernel: vm: Move vm_ctx structure to pmap.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-10kernel: _VEGA_SOURCE -> _HYRA_SOURCEIan Moffett
Vega is now known as Hyra Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-10kernel: syslog: Add KWARN()Ian Moffett
Add macro to facilitate kernel warning logs Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-10kernel/amd64: machdep: Add pre_init()Ian Moffett
This commit introduces a pre_init() function for setting up things that processor_init() may depend on Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-01project-wide: Make copyright year a rangeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-01project-wide: Update copyright yearIan Moffett
Happy new year!! Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-25kernel/amd64: lapic: Add initial LAPIC Timer logicIan Moffett
The commit adds the initial Local APIC timer support in Hyra... However, the interrupt service routine is a stub and needs to be completed. Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-25kernel: timer: Add microseconds supportIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-23kernel/amd64: cpu: Add interrupt helper routineIan Moffett
This commit adds a helper that allows checking if maskable interrupts are disabled on the current core. Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-21build: Update build constant OS prefixesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-19kernel: cdefs: Add extra helpersIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>