aboutsummaryrefslogtreecommitdiff
path: root/sys/include/arch/amd64/cpu.h
AgeCommit message (Collapse)Author
2024-03-13kernel/amd64: cpu: Add fxsave/fxrstor helpersIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-11kernel/amd64: Add control register r/w helpersIan Moffett
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-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-15kernel/amd64: cpu: Prefix machdeps with cpu_Ian 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-11kernel: sched: Add initial sched related codeIan Moffett
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-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-19kernel/amd64: lapic: Fixup LAPIC state trackingIan Moffett
This commit removes the lapic_set_base() function and certain globals from the Local APIC driver so it won't cause problems on hardware with many CPU sockets or that is just wacky. Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-11kernel/amd64: Add Task State SegmentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-11kernel/amd64: Update arch(9)Ian Moffett
This commit cleans up arch(9) as a few things were noticed. First, it would make sense to identify cores (described by the cpu_info structure) in every arch ported, thus the lapic_id has been changed to id so it can be shared. Some annotations have also been added for the sake of clarity. The manpage for arch(9) has also been cleaned up. Signed-off-by: Ian Moffett <ian@osmora.org>
2023-11-13project-wide: Update project namesigsegv7
Update project name to avoid conflicts with the name of Amazon's new 'Vega' Smart Device Operating System. Signed-off-by: sigsegv7 <ian@osmora.org>
2023-10-04kernel/amd64: Add spinlock to cpu_infosigsegv7
Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-10-04kernel/amd64: Add AMD64 CPU abstractionssigsegv7
This commit adds the CPU abstraction files for AMD64. This abstraction implements CPU specific logic Signed-off-by: sigsegv7 <ian@vegaa.systems>