From ba7edf1981adac091b3a82876c41f3364cf0b215 Mon Sep 17 00:00:00 2001 From: Balazs Gerofi Date: Fri, 5 May 2017 05:11:15 +0900 Subject: [PATCH] move out local IRQ vector definitions to shared header --- arch/x86/kernel/cpu.c | 2 -- lib/include/ihk/cpu.h | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu.c b/arch/x86/kernel/cpu.c index 01d5f0f5..cf14bd91 100644 --- a/arch/x86/kernel/cpu.c +++ b/arch/x86/kernel/cpu.c @@ -42,8 +42,6 @@ #define LAPIC_ICR0 0x300 #define LAPIC_ICR2 0x310 #define LAPIC_ESR 0x280 -#define LOCAL_TIMER_VECTOR 0xef -#define LOCAL_PERF_VECTOR 0xf0 #define APIC_INT_LEVELTRIG 0x08000 #define APIC_INT_ASSERT 0x04000 diff --git a/lib/include/ihk/cpu.h b/lib/include/ihk/cpu.h index e32b4633..45330769 100644 --- a/lib/include/ihk/cpu.h +++ b/lib/include/ihk/cpu.h @@ -103,6 +103,10 @@ enum ihk_asr_type { IHK_ASR_X86_GS, }; +/* Local IRQ vectors */ +#define LOCAL_TIMER_VECTOR 0xef +#define LOCAL_PERF_VECTOR 0xf0 + #define IHK_TLB_FLUSH_IRQ_VECTOR_START 68 #define IHK_TLB_FLUSH_IRQ_VECTOR_SIZE 64 #define IHK_TLB_FLUSH_IRQ_VECTOR_END (IHK_TLB_FLUSH_IRQ_VECTOR_START + IHK_TLB_FLUSH_IRQ_VECTOR_SIZE)