瀏覽代碼

* SysResetFPU fix for BeOS by Olivier Coursiere

git-svn-id: trunk@9010 -
florian 18 年之前
父節點
當前提交
04086e9df2
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      rtl/beos/system.pp

+ 4 - 1
rtl/beos/system.pp

@@ -348,12 +348,15 @@ end;
 var
   s : string;
 begin
-  SysResetFPU;
   IsConsole := TRUE;
   IsLibrary := FALSE;
   StackLength := CheckInitialStkLen(InitialStkLen);
   StackBottom := Sptr - StackLength;
 
+  SysResetFPU;
+  if not(IsLibrary) then
+    SysInitFPU;
+
   { Set up signals handlers }
   InstallSignals;