|
@@ -63,6 +63,8 @@ var
|
|
|
|
|
|
dos_psp:Word;public name 'dos_psp';
|
|
dos_psp:Word;public name 'dos_psp';
|
|
|
|
|
|
|
|
+ SaveInt00: FarPointer;public name '__SaveInt00';
|
|
|
|
+
|
|
AllFilesMask: string [3];
|
|
AllFilesMask: string [3];
|
|
{$ifndef RTLLITE}
|
|
{$ifndef RTLLITE}
|
|
{ System info }
|
|
{ System info }
|
|
@@ -111,6 +113,9 @@ procedure MsDos(var Regs: Registers); external name 'FPC_MSDOS';
|
|
support them }
|
|
support them }
|
|
procedure MsDos_Carry(var Regs: Registers); external name 'FPC_MSDOS_CARRY';
|
|
procedure MsDos_Carry(var Regs: Registers); external name 'FPC_MSDOS_CARRY';
|
|
|
|
|
|
|
|
+procedure InstallInterruptHandlers; external name 'FPC_INSTALL_INTERRUPT_HANDLERS';
|
|
|
|
+procedure RestoreInterruptHandlers; external name 'FPC_RESTORE_INTERRUPT_HANDLERS';
|
|
|
|
+
|
|
{$I system.inc}
|
|
{$I system.inc}
|
|
|
|
|
|
{$I tinyheap.inc}
|
|
{$I tinyheap.inc}
|
|
@@ -264,6 +269,7 @@ procedure system_exit;
|
|
var
|
|
var
|
|
h : byte;
|
|
h : byte;
|
|
begin
|
|
begin
|
|
|
|
+ RestoreInterruptHandlers;
|
|
for h:=0 to max_files-1 do
|
|
for h:=0 to max_files-1 do
|
|
if openfiles[h] then
|
|
if openfiles[h] then
|
|
begin
|
|
begin
|
|
@@ -333,6 +339,7 @@ begin
|
|
StackTop := __stktop;
|
|
StackTop := __stktop;
|
|
StackBottom := __stkbottom;
|
|
StackBottom := __stkbottom;
|
|
StackLength := __stktop - __stkbottom;
|
|
StackLength := __stktop - __stkbottom;
|
|
|
|
+ InstallInterruptHandlers;
|
|
if DetectFPU then
|
|
if DetectFPU then
|
|
SysInitFPU;
|
|
SysInitFPU;
|
|
{ To be set if this is a GUI or console application }
|
|
{ To be set if this is a GUI or console application }
|