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:
parent
1aeda86d90
commit
0e579d1aec
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue