|
@@ -19,7 +19,7 @@
|
|
|
|
|
|
{$ASMMODE ATT}
|
|
|
|
|
|
-function FpSysCall(sysnr:TSysParam):TSysResult; assembler;[public,alias:'FPC_SYSCALL0'];
|
|
|
+function FpSysCall(sysnr:TSysParam):TSysResult; assembler;{$ifndef VER1_0}oldfpccall;{$endif}[public,alias:'FPC_SYSCALL0'];
|
|
|
|
|
|
asm
|
|
|
{ load the registers... }
|
|
@@ -49,7 +49,7 @@ asm
|
|
|
.LSyscOK:
|
|
|
end;
|
|
|
|
|
|
-function FpSysCall(sysnr,param1 : TSysParam):TSysResult; assembler;[public,alias:'FPC_SYSCALL1'];
|
|
|
+function FpSysCall(sysnr,param1 : TSysParam):TSysResult; assembler;{$ifndef VER1_0}oldfpccall;{$endif}[public,alias:'FPC_SYSCALL1'];
|
|
|
|
|
|
asm
|
|
|
{ load the registers... }
|
|
@@ -80,7 +80,7 @@ asm
|
|
|
.LSyscOK:
|
|
|
end;
|
|
|
|
|
|
-function FpSysCall(sysnr,param1,param2 : TSysParam):TSysResult; assembler;[public,alias:'FPC_SYSCALL2'];
|
|
|
+function FpSysCall(sysnr,param1,param2 : TSysParam):TSysResult; assembler;{$ifndef VER1_0}oldfpccall;{$endif}[public,alias:'FPC_SYSCALL2'];
|
|
|
|
|
|
asm
|
|
|
{ load the registers... }
|
|
@@ -112,7 +112,7 @@ asm
|
|
|
.LSyscOK:
|
|
|
end;
|
|
|
|
|
|
-function FpSysCall(sysnr,param1,param2,param3:TSysParam):TSysResult; assembler;[public,alias:'FPC_SYSCALL3'];
|
|
|
+function FpSysCall(sysnr,param1,param2,param3:TSysParam):TSysResult; assembler;{$ifndef VER1_0}oldfpccall;{$endif}[public,alias:'FPC_SYSCALL3'];
|
|
|
|
|
|
asm
|
|
|
{ load the registers... }
|
|
@@ -145,7 +145,7 @@ asm
|
|
|
.LSyscOK:
|
|
|
end;
|
|
|
|
|
|
-function FpSysCall(sysnr,param1,param2,param3,param4:TSysParam):TSysResult; assembler;[public,alias:'FPC_SYSCALL4'];
|
|
|
+function FpSysCall(sysnr,param1,param2,param3,param4:TSysParam):TSysResult; assembler;{$ifndef VER1_0}oldfpccall;{$endif}[public,alias:'FPC_SYSCALL4'];
|
|
|
|
|
|
asm
|
|
|
{ load the registers... }
|
|
@@ -179,7 +179,7 @@ asm
|
|
|
.LSyscOK:
|
|
|
end;
|
|
|
|
|
|
-function FpSysCall(sysnr,param1,param2,param3,param4,param5 : TSysParam):TSysResult; assembler;[public,alias:'FPC_SYSCALL5'];
|
|
|
+function FpSysCall(sysnr,param1,param2,param3,param4,param5 : TSysParam):TSysResult; assembler;{$ifndef VER1_0}oldfpccall;{$endif}[public,alias:'FPC_SYSCALL5'];
|
|
|
|
|
|
asm
|
|
|
{ load the registers... }
|
|
@@ -216,7 +216,7 @@ end;
|
|
|
|
|
|
{$ifdef notsupported}
|
|
|
{ Only 5 params are pushed, so it'll not work as expected (PFV) }
|
|
|
-function FpSysCall(sysnr,param1,param2,param3,param4,param5,param6 : TSysParam):TSysResult; assembler;[public,alias:'FPC_SYSCALL6'];
|
|
|
+function FpSysCall(sysnr,param1,param2,param3,param4,param5,param6 : TSysParam):TSysResult; assembler;{$ifndef VER1_0}oldfpccall;{$endif}[public,alias:'FPC_SYSCALL6'];
|
|
|
|
|
|
asm
|
|
|
{ load the registers... }
|
|
@@ -261,7 +261,7 @@ end;
|
|
|
--- Main:The System Call Self ---
|
|
|
*****************************************************************************}
|
|
|
|
|
|
-Procedure FpSysCall( callnr:TSysParam;var regs : SysCallregs );assembler;
|
|
|
+Procedure FpSysCall( callnr:TSysParam;var regs : SysCallregs );assembler;{$ifndef VER1_0}oldfpccall;{$endif}
|
|
|
{
|
|
|
This function puts the registers in place, does the call, and then
|
|
|
copies back the registers as they are after the SysCall.
|
|
@@ -341,7 +341,11 @@ end;
|
|
|
|
|
|
{
|
|
|
$Log$
|
|
|
- Revision 1.7 2002-12-24 19:45:59 peter
|
|
|
+ Revision 1.8 2003-09-14 11:34:13 peter
|
|
|
+ * moved int64 asm code to int64p.inc
|
|
|
+ * save ebx,esi
|
|
|
+
|
|
|
+ Revision 1.7 2002/12/24 19:45:59 peter
|
|
|
* only set errno when syscall fails
|
|
|
|
|
|
Revision 1.6 2002/12/23 21:17:53 peter
|