1
0
Fork 0
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:
Stefan Lankes 2015-08-30 22:05:06 +02:00
parent 2d23863d13
commit 383aba6fbd

View file

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