1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

for the registeration of cpu, the apic id is required

=> use apic_cpu_id to determine id
This commit is contained in:
Stefan Lankes 2015-08-26 09:06:39 +02:00
parent 1aeda86d90
commit 0e579d1aec

View file

@ -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));
}