aboutsummaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2023-12-17kernel/amd64: trap: Fix stack issuesIan Moffett
This fixes a bug relating to a lack of error code (pushed by hardware) misaligning the stack. Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-17kernel/amd64: frame: Seperate ASM from C headerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-13kernel/amd64: tss: Add TSS stack helpersIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-13kernel/amd64: machdep: Cleanup processor_init()Ian Moffett
This commit cleans up processor_init() by tidying up and reordering calls to ensure things will be set up in the correct order. Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-13kernel/amd64: tss: Fix broken TSS codeIan Moffett
This commit fixes some horribly broken TSS code. It is unclear how it got this broken. Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-13kernel/amd64: trap: Log instruction pointerIan Moffett
This commit adds some logic to trap_handler() which makes it show the instruction pointer from the trapframe. Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-13kernel/amd64: trap: Cleanup commentsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-12kernel/amd64: machdep: Fixup comment clarityIan Moffett
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: machdep: Include missing headerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2023-12-11kernel/amd64: machdep: Add module infoIan 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-24kernel: Fixup VM header namingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2023-11-14kernel/amd64: lapic: Simplify LAPIC timer initsigsegv7
Signed-off-by: sigsegv7 <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-11-12kernel/amd64: lapic: Remove ESR supportsigsegv7
ESR support should be added later on; there is no need for it as of now... Signed-off-by: sigsegv7 <ian@osmora.org>
2023-10-18kernel/amd64: lapic: Add ESR reading logicsigsegv7
Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-10-18kernel/amd64: lapic: Add basic x2APIC supportsigsegv7
Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-10-11kernel: vm: pmap.h -> vm_pmap.hsigsegv7
Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-10-11kernel: vm: Add PMAP abstractionsigsegv7
Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-10-04kernel/amd64: Remove stray newlinesigsegv7
Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-10-04kernel/amd64: Add spinlock to cpu_infosigsegv7
Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-10-04kernel/amd64: Initialize IDT and GDT firstsigsegv7
This commit moves the interrupts_init() and gdt_load() calls to the top so interrupts are set up first in case something goes wrong so we can get information from exception handlers. Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-10-04kernel/amd64: cpu: Add metadatasigsegv7
Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-10-04kernel/amd64: Move metadata macros to topsigsegv7
Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-10-04kernel/amd64: Set certain cpu_info fieldssigsegv7
This commit puts certain fields on the cpu_info structure into a known state. Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-10-04kernel/amd64: Fix up BSP_KINFO logicsigsegv7
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>
2023-09-30kernel/amd64: machdep: Enable spectre mitigationsigsegv7
Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-09-28kernel/amd64: Add __KERNEL_META for .S filessigsegv7
Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-09-25kernel/amd64: Add spectre mitigation supportsigsegv7
Add spectre mitigation support for AMD64 hosts which may be enabled via the --enable-spectre-mitigation configure flag. This commit currently only adds IBRS support but more techniques may be added later on. Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-09-20kernel/amd64: Add stub LAPIC timer supportsigsegv7
Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-09-17kernel/amd64: Add Local APIC driversigsegv7
This commit introduces the initial Local APIC driver sources Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-09-14kernel/amd64: Improve docssigsegv7
Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-09-14kernel/amd64: Add I/O APIC pin mask/unmask logicsigsegv7
Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-09-14kernel/amd64: Introduce initial I/O APIC supportsigsegv7
Signed-off-by: sigsegv7 <ian@vegaa.systems>
2023-09-12kernel: fix include bugsigsegv7
2023-09-12project-wide: migrate to gitsigsegv7
2023-09-03project-wide: update project authoremilia
git-svn-id: https://svn.vegaa.systems/svn/vega-Vega/trunk@43 a8a8aea2-181d-ee11-89e8-15fd0e089fc4
2023-08-19project-wide: Update author nameemilia
git-svn-id: https://svn.vegaa.systems/svn/vega-Vega/trunk@33 a8a8aea2-181d-ee11-89e8-15fd0e089fc4
2023-08-17kernel/amd64: machdep: Refactor attribute usageian
Use __weak only in headers git-svn-id: https://svn.vegaa.systems/svn/vega-Vega/trunk@30 a8a8aea2-181d-ee11-89e8-15fd0e089fc4
2023-07-28kernel: Cleanup arch abstraction layerian
git-svn-id: https://svn.vegaa.systems/svn/vega-Vega/trunk@29 a8a8aea2-181d-ee11-89e8-15fd0e089fc4
2023-07-08kernel/amd64: Abstract architecture specificsian
git-svn-id: https://svn.vegaa.systems/svn/vega-Vega/trunk@9 a8a8aea2-181d-ee11-89e8-15fd0e089fc4
2023-07-07should be working, should benishi
git-svn-id: https://svn.vegaa.systems/svn/vega-Vega/trunk@7 a8a8aea2-181d-ee11-89e8-15fd0e089fc4