aboutsummaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-02-04 22:53:23 -0500
committerIan Moffett <ian@osmora.org>2024-02-04 22:53:23 -0500
commit58f836905d91086e26b6688f8c3de0dc89bac450 (patch)
tree3a2d9d4a6b08f4613121df5de0219ede3b9d343e /sys/arch
parent6ed63f6cee404c09ce6d2becf4ab60b891a767fe (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.c4
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();