Browse Source

* SysResetFPU fix for BeOS by Olivier Coursiere

git-svn-id: trunk@9010 -
florian 18 years ago
parent
commit
04086e9df2
1 changed files with 4 additions and 1 deletions
  1. 4 1
      rtl/beos/system.pp

+ 4 - 1
rtl/beos/system.pp

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