diff options
author | Ian Moffett <ian@osmora.org> | 2024-02-04 22:53:23 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-02-04 22:53:23 -0500 |
commit | 58f836905d91086e26b6688f8c3de0dc89bac450 (patch) | |
tree | 3a2d9d4a6b08f4613121df5de0219ede3b9d343e /sys/arch | |
parent | 6ed63f6cee404c09ce6d2becf4ab60b891a767fe (diff) |
kernel/amd64: lapic: Extend r/w width to 64 bits
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/amd64/lapic.c | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |