From 30b7f0c761765f663b878a3dd35431e1c2f7c420 Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Thu, 15 Jan 2015 11:16:40 +0000 Subject: [PATCH] kernel: fix very unusual problem with tls git-svn-id: svn://kolibrios.org@5376 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/sched.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/trunk/core/sched.inc b/kernel/trunk/core/sched.inc index 01697606dd..90c015afd7 100644 --- a/kernel/trunk/core/sched.inc +++ b/kernel/trunk/core/sched.inc @@ -116,8 +116,6 @@ do_change_task: Mov [tss._esp0],eax,[ebx+APPDATA.saved_esp0] mov edx, [ebx+APPDATA.tls_base] - cmp edx, [esi+APPDATA.tls_base] - je @f mov [tls_data_l+2], dx shr edx, 16 @@ -126,7 +124,7 @@ do_change_task: mov dx, app_tls mov fs, dx -@@: + ; set gs selector unconditionally Mov gs,ax,graph_data ; set CR0.TS