|
@@ -21,6 +21,12 @@ interface
|
|
|
{ include system-independent routine headers }
|
|
|
{$I systemh.inc}
|
|
|
|
|
|
+{$if defined(cpum68k) and defined(fpusoft)}
|
|
|
+{$define fpc_softfpu_interface}
|
|
|
+{$i softfpu.pp}
|
|
|
+{$undef fpc_softfpu_interface}
|
|
|
+{$endif defined(cpum68k) and defined(fpusoft)}
|
|
|
+
|
|
|
const
|
|
|
LineEnding = #13;
|
|
|
LFNSupport = true;
|
|
@@ -185,6 +191,28 @@ Perhaps handle readonly filesystems, as in sysunix.inc
|
|
|
|
|
|
}
|
|
|
|
|
|
+{$if defined(cpum68k) and defined(fpusoft)}
|
|
|
+
|
|
|
+{$define fpc_softfpu_implementation}
|
|
|
+{$define softfpu_compiler_mul32to64}
|
|
|
+{$define softfpu_inline}
|
|
|
+{$i softfpu.pp}
|
|
|
+{$undef fpc_softfpu_implementation}
|
|
|
+
|
|
|
+{ we get these functions and types from the softfpu code }
|
|
|
+{$define FPC_SYSTEM_HAS_float64}
|
|
|
+{$define FPC_SYSTEM_HAS_float32}
|
|
|
+{$define FPC_SYSTEM_HAS_flag}
|
|
|
+{$define FPC_SYSTEM_HAS_extractFloat64Frac0}
|
|
|
+{$define FPC_SYSTEM_HAS_extractFloat64Frac1}
|
|
|
+{$define FPC_SYSTEM_HAS_extractFloat64Exp}
|
|
|
+{$define FPC_SYSTEM_HAS_extractFloat64Sign}
|
|
|
+{$define FPC_SYSTEM_HAS_ExtractFloat32Frac}
|
|
|
+{$define FPC_SYSTEM_HAS_extractFloat32Exp}
|
|
|
+{$define FPC_SYSTEM_HAS_extractFloat32Sign}
|
|
|
+{$endif defined(cpum68k) and defined(fpusoft)}
|
|
|
+
|
|
|
+
|
|
|
{******** include system independent routines **********}
|
|
|
{$I system.inc}
|
|
|
|
|
@@ -296,6 +324,14 @@ begin
|
|
|
FindSysFolder:= err;
|
|
|
end;
|
|
|
|
|
|
+{$ifdef CPUM68K}
|
|
|
+{$WARNING FIXME: Dummy TrapAvailable!}
|
|
|
+function TrapAvailable(_trap: Word): Boolean;
|
|
|
+begin
|
|
|
+ TrapAvailable:=false;
|
|
|
+end;
|
|
|
+{$endif CPUM68K}
|
|
|
+
|
|
|
procedure InvestigateSystem;
|
|
|
|
|
|
{$IFDEF CPUM68K}
|
|
@@ -351,7 +387,9 @@ begin
|
|
|
macosSystemVersion := 0;
|
|
|
end;
|
|
|
|
|
|
- macosHasSysDebugger := (LongintPtr(MacJmp)^ <> 0);
|
|
|
+ {$WARNING FIXME: MacJmp}
|
|
|
+ //macosHasSysDebugger := (LongintPtr(MacJmp)^ <> 0);
|
|
|
+ macosHasSysDebugger := false;
|
|
|
|
|
|
macosHasCFM := false;
|
|
|
macosHasAppleEvents := false;
|
|
@@ -367,10 +405,11 @@ begin
|
|
|
if (macosHasScriptMgr) then
|
|
|
macosNrOfScriptsInstalled := GetEnvirons(smEnabled);
|
|
|
{$ELSE}
|
|
|
- if (macosHasScriptMgr) then
|
|
|
- macosNrOfScriptsInstalled := GetScriptManagerVariable(smEnabled); {Gamla rutinnamnet var GetEnvirons.}
|
|
|
- {$ENDIF}
|
|
|
+ {$WARNING FIXME: GetScriptManagerVariable and smEnabled}
|
|
|
+ //if (macosHasScriptMgr) then
|
|
|
+ // macosNrOfScriptsInstalled := GetScriptManagerVariable(smEnabled); {Gamla rutinnamnet var GetEnvirons.}
|
|
|
{$ENDIF}
|
|
|
+ {$ENDIF CPUM68K}
|
|
|
end
|
|
|
else
|
|
|
begin
|