forked from KolibriOS/kolibrios
kernel: fix very unusual problem with tls
git-svn-id: svn://kolibrios.org@5376 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
def5de6e8f
commit
30b7f0c761
@ -116,8 +116,6 @@ do_change_task:
|
|||||||
Mov [tss._esp0],eax,[ebx+APPDATA.saved_esp0]
|
Mov [tss._esp0],eax,[ebx+APPDATA.saved_esp0]
|
||||||
|
|
||||||
mov edx, [ebx+APPDATA.tls_base]
|
mov edx, [ebx+APPDATA.tls_base]
|
||||||
cmp edx, [esi+APPDATA.tls_base]
|
|
||||||
je @f
|
|
||||||
|
|
||||||
mov [tls_data_l+2], dx
|
mov [tls_data_l+2], dx
|
||||||
shr edx, 16
|
shr edx, 16
|
||||||
@ -126,7 +124,7 @@ do_change_task:
|
|||||||
|
|
||||||
mov dx, app_tls
|
mov dx, app_tls
|
||||||
mov fs, dx
|
mov fs, dx
|
||||||
@@:
|
|
||||||
; set gs selector unconditionally
|
; set gs selector unconditionally
|
||||||
Mov gs,ax,graph_data
|
Mov gs,ax,graph_data
|
||||||
; set CR0.TS
|
; set CR0.TS
|
||||||
|
Loading…
Reference in New Issue
Block a user