aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-23kernel/amd64: lapic_timer.S -> local_intr.SIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-23kernel/amd64: machdep: Remove useless declIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-22kernel/amd64: lapic: Set timer routineIan Moffett
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-22kernel/amd64: machdep: Unmask interruptsIan Moffett
This commit unmasks maskable interrupts within the processor_init() routine for the AMD64 port. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-22kernel/amd64: machdep: Isolate BSP-only callsIan Moffett
Some routines are to be called on the BSP only during processor startup, this commit isolates them for the BSP onto in pre_init() Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-20kernel/amd64: trap: Dump regs upon exceptionIan Moffett
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-18kernel/amd64: hpet: Remove extra whitespaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-18kernel/amd64: hpet: Use hint_spinwait()Ian Moffett
This commit completes a TODO in the HPET driver Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-18kernel/amd64: machdep: Init HPET only onceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-17kernel: syslog: Add '%p'Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-17kernel: syslog: Add TODOIan 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-05kernel/amd64: lapic: Fix icr_lo overflow bugIan Moffett
Somehow icr_lo was a uint8_t which is obviously not right and would cause overflow bugs. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-05kernel/amd64: lapic: Conform to styleIan 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-02-04kernel/amd64: lapic: Remove redundant whitespaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-04kernel/amd64: lapic: Extend r/w width to 64 bitsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-17kernel: vm: Init virtual memory in pre_init()Ian 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-17kernel: syslog: Better abstract loggingIan 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-13docs: man: Document map_unmap()Ian 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-12docs: man: Add pmap(9) pageIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-12docs: man: Fix formattingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-12docs: man: Update dynalloc.9 titleIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-01-12kernel/amd64: pmap: Document PTE flags furtherIan 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>