From 58f836905d91086e26b6688f8c3de0dc89bac450 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 4 Feb 2024 22:53:23 -0500 Subject: kernel/amd64: lapic: Extend r/w width to 64 bits Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/lapic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/arch/amd64/amd64/lapic.c b/sys/arch/amd64/amd64/lapic.c index 50d518c..ead08a5 100644 --- a/sys/arch/amd64/amd64/lapic.c +++ b/sys/arch/amd64/amd64/lapic.c @@ -85,7 +85,7 @@ lapic_check_support(void) * * @reg: Register to read from. */ -static inline uint32_t +static inline uint64_t lapic_readl(uint32_t reg) { void *addr; @@ -107,7 +107,7 @@ lapic_readl(uint32_t reg) * @reg: Register to write to. */ static inline void -lapic_writel(uint32_t reg, uint32_t val) +lapic_writel(uint32_t reg, uint64_t val) { void *addr; const struct cpu_info *ci = this_cpu(); -- cgit v1.2.3