From 0e579d1aecf1993d6d2260a57269707bac7523bd Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Wed, 26 Aug 2015 09:06:39 +0200 Subject: [PATCH] for the registeration of cpu, the apic id is required => use apic_cpu_id to determine id --- hermit/arch/x86/include/asm/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermit/arch/x86/include/asm/processor.h b/hermit/arch/x86/include/asm/processor.h index 454ff0881..03fad09be 100644 --- a/hermit/arch/x86/include/asm/processor.h +++ b/hermit/arch/x86/include/asm/processor.h @@ -656,7 +656,7 @@ void udelay(uint32_t usecs); /// Register a task's TSS at GDT static inline void register_task(void) { - uint16_t sel = (CORE_ID*2+7) << 3; + uint16_t sel = (apic_cpu_id()*2+7) << 3; asm volatile ("ltr %%ax" : : "a"(sel)); }