mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
set TSS on all cores
- in previous versions, the idle task didn't set the TSS
This commit is contained in:
parent
2c8a1a3a45
commit
e638c8a7cb
1 changed files with 1 additions and 0 deletions
|
@ -170,6 +170,7 @@ int set_idle_task(void)
|
|||
task_table[i].heap = NULL;
|
||||
readyqueues[core_id].idle = task_table+i;
|
||||
set_per_core(current_task, readyqueues[core_id].idle);
|
||||
set_tss((size_t) task_table[i].stack + KERNEL_STACK_SIZE - 0x10, (size_t) task_table[i].ist_addr + KERNEL_STACK_SIZE - 0x10);
|
||||
ret = 0;
|
||||
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue