1
0
Fork 0
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:
Stefan Lankes 2016-08-31 13:33:52 +02:00
parent 2c8a1a3a45
commit e638c8a7cb

View file

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