mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
avoid the using of MSR because an MSR access is slow
This commit is contained in:
parent
2d23863d13
commit
383aba6fbd
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ static int thread_entry(void* arg, size_t ep)
|
|||
if (curr_task->tls_addr && curr_task->tls_size) {
|
||||
// set fs register to the TLS segment
|
||||
writefs(stack+offset);
|
||||
kprintf("Task %d set fs to 0x%llx\n", curr_task->id, readfs());
|
||||
kprintf("Task %d set fs to 0x%llx\n", curr_task->id, stack+offset);
|
||||
|
||||
// copy default TLS segment to stack
|
||||
offset -= curr_task->tls_size;
|
||||
|
|
Loading…
Add table
Reference in a new issue