浏览代码

* disable TLS segment initialization, it breaks threading

git-svn-id: trunk@1470 -
peter 20 年之前
父节点
当前提交
7f6d44006e
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      rtl/linux/i386/prt0.as

+ 3 - 3
rtl/linux/i386/prt0.as

@@ -59,9 +59,9 @@ _start:
         fwait
         fwait
         fldcw   ___fpucw
         fldcw   ___fpucw
 
 
-        /* Initialize gs for thread local storage */
-        movw    %ds,%ax
-        movw    %ax,%gs
+#        /* Initialize gs for thread local storage */
+#        movw    %ds,%ax
+#        movw    %ax,%gs
 
 
         xorl    %ebp,%ebp
         xorl    %ebp,%ebp
         call    PASCALMAIN
         call    PASCALMAIN