Просмотр исходного кода

* use mov insteead of push ds, valgrind doesn't like the push

git-svn-id: trunk@1140 -
peter 20 лет назад
Родитель
Сommit
72b0603943
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      rtl/linux/i386/prt0.as

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

@@ -60,8 +60,8 @@ _start:
         fldcw   ___fpucw
 
         /* Initialize gs for thread local storage */
-        pushw   %ds
-        popw    %gs
+        movw    %ds,%ax
+        movw    %ax,%gs
 
         xorl    %ebp,%ebp
         call    PASCALMAIN