Commit ed4e5ec1 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Ingo Molnar

x86: apic - use SET_APIC_DEST_FIELD instead of hardcoded shift

Signed-off-by: default avatarCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 5aa37e4f
...@@ -150,7 +150,7 @@ u32 safe_xapic_wait_icr_idle(void) ...@@ -150,7 +150,7 @@ u32 safe_xapic_wait_icr_idle(void)
void xapic_icr_write(u32 low, u32 id) void xapic_icr_write(u32 low, u32 id)
{ {
apic_write(APIC_ICR2, id << 24); apic_write(APIC_ICR2, SET_APIC_DEST_FIELD(id));
apic_write(APIC_ICR, low); apic_write(APIC_ICR, low);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment