diff options
author | Ian Moffett <ian@osmora.org> | 2025-04-17 03:02:33 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-04-17 03:02:33 -0400 |
commit | 9e9ad4e69e967357bd5948a4eec9082986d303e5 (patch) | |
tree | 934f2aeb25e2378cc684cdedde8eff42e46ff7d6 | |
parent | 27d771013d7fc923b8079b6a0246ba3bc4e83d58 (diff) |
kernel/amd64: cpu: Add IRQ mask
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | sys/include/arch/amd64/cpu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/include/arch/amd64/cpu.h b/sys/include/arch/amd64/cpu.h index 716f44a..ce42416 100644 --- a/sys/include/arch/amd64/cpu.h +++ b/sys/include/arch/amd64/cpu.h @@ -35,11 +35,14 @@ #include <sys/proc.h> #include <machine/tss.h> +#define CPU_IRQ(IRQ_N) (BIT((IRQ_N)) & 0xFF) + struct cpu_info { uint32_t apicid; uint8_t has_x2apic : 1; uint8_t ipl; size_t lapic_tmr_freq; + uint8_t irq_mask; struct tss_entry *tss; struct proc *curtd; struct cpu_info *self; |