diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-15 14:57:21 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-15 14:57:21 -0400 |
commit | 0d6c636c0ef3bcdc3285afb914cf28326b1b84ff (patch) | |
tree | 3ea5ba61c4fc919b1fcc8d90ba52b75d0110c0c0 /src/sys/include/arch/amd64/mdcpu.h | |
parent | 44e8b43d4a468129e62ff11f41e70c109336f4d7 (diff) |
kern/amd64: lapic: Add LAPIC timer support
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include/arch/amd64/mdcpu.h')
-rw-r--r-- | src/sys/include/arch/amd64/mdcpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sys/include/arch/amd64/mdcpu.h b/src/sys/include/arch/amd64/mdcpu.h index 1503adb..3fccc42 100644 --- a/src/sys/include/arch/amd64/mdcpu.h +++ b/src/sys/include/arch/amd64/mdcpu.h @@ -48,6 +48,7 @@ * @lapic_base: LAPIC register interface base * @x2apic: Has the x2APIC? Is 1 if true * @tss: Task state segment for this core + * @lapic_tmr_freq: Local APIC timer frequency */ struct mdcore { uint32_t apic_id; @@ -55,6 +56,7 @@ struct mdcore { void *lapic_base; uint8_t x2apic : 1; struct tss_entry tss; + size_t lapic_tmr_freq; }; #endif /* !_MACHINE_MDCPU_H_ */ |