diff options
author | Ian Moffett <ian@osmora.org> | 2024-02-05 22:23:52 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-02-05 22:24:08 -0500 |
commit | efe1d129f69c0d5668f37fdf7c8b37c17bc6496f (patch) | |
tree | 833917623dcb90e183fc67b5a482f96fcc1d9dcb /sys | |
parent | 0707815822121996af1968ef5622a0f957108587 (diff) |
kernel/amd64: lapic: Fix icr_lo overflow bug
Somehow icr_lo was a uint8_t which is obviously not right and would
cause overflow bugs.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/lapic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/lapic.c b/sys/arch/amd64/amd64/lapic.c index c5760f5..c4e81a6 100644 --- a/sys/arch/amd64/amd64/lapic.c +++ b/sys/arch/amd64/amd64/lapic.c @@ -273,7 +273,7 @@ void lapic_send_ipi(uint8_t id, uint8_t shorthand, uint8_t vector) { const uint32_t x2APIC_IPI_SELF = 0x3F0; - uint8_t icr_lo = vector | IPI_DEST_PHYSICAL; + uint64_t icr_lo = vector | IPI_DEST_PHYSICAL; bool x2apic_supported = has_x2apic(); if (x2apic_supported && shorthand == IPI_SHORTHAND_SELF) { |