aboutsummaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2024-03-06kernel/amd64: Remove switch.SIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-29kernel/amd64: trap: Simplify trap_print() logicIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-29kernel/amd64: machdep: Add wrappers over CLI/STIIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-29kernel/amd64: pmap: Add user pte flagIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-29kernel/amd64: pmap: Add routine to switch vasIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-29kernel/amd64: pmap: Fix calculation of indicesIan Moffett
This commit fixes a very stupid mistake in the pmap module for AMD64 Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-29kernel/amd64: pmap: Allocate new pmap if neededIan Moffett
This commit also removes the unnecessary usage of "volatile" Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-29kernel/amd64: tss: Allocate stack for RSP0Ian Moffett
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/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: sched: Send EOI after context switchIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-26kernel/amd64: cpu_mp: Allow single core processingIan 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-25kernel/amd64: spectre: RefactorIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-25kernel/amd64: machdep: RefactorIan Moffett
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: spectre: Remove useless whitespaceIan Moffett
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-15kernel/amd64: cpu: Prefix machdeps with cpu_Ian 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-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-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-13kernel/amd64: pmap: Add pmap_unmap()Ian 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-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-28kernel/amd64: cpu: Ensure `bsp_info' is zero'dIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-28kernel/amd64: trap: Fix stack misalignmentIan Moffett
Some traps have error codes and others don't... Fix inconsistent error code handling. Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-25kernel/amd64: machdep: RefactorIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>