From 1c503b825779541d3b6ff1096c0c205d1b435aaf Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Sat, 23 Jan 2016 10:08:21 +0000 Subject: [PATCH] kernel: fixed a bug with tls introduced in rev5130. Double facepalm. git-svn-id: svn://kolibrios.org@6090 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/taskman.inc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/kernel/trunk/core/taskman.inc b/kernel/trunk/core/taskman.inc index 6f38bf6c73..ee9e17c563 100644 --- a/kernel/trunk/core/taskman.inc +++ b/kernel/trunk/core/taskman.inc @@ -940,12 +940,6 @@ proc new_sys_threads mov ecx, 11 rep movsb ;copy process name - mov eax, [ebx+APPDATA.process] - mov [edx+APPDATA.process], eax - - lea ebx, [edx+APPDATA.list] - lea ecx, [eax+PROC.thr_list] - list_add_tail ebx, ecx ;add thread to process child's list mov eax, [ebx+APPDATA.tls_base] test eax, eax @@ -959,6 +953,13 @@ proc new_sys_threads @@: mov [edx+APPDATA.tls_base], eax + mov eax, [ebx+APPDATA.process] + mov [edx+APPDATA.process], eax + + lea ebx, [edx+APPDATA.list] + lea ecx, [eax+PROC.thr_list] + list_add_tail ebx, ecx ;add thread to process child's list + lea eax, [app_cmdline] stdcall set_app_params , [slot], eax, dword 0, \ dword 0, [flags]