Browse Source

+ assembler mode forced to ATT style for x86 cpu

mazen 22 years ago
parent
commit
e828773c4e
2 changed files with 7 additions and 4 deletions
  1. 5 2
      rtl/linux/sysc11.inc
  2. 2 2
      rtl/unix/x86.pp

+ 5 - 2
rtl/linux/sysc11.inc

@@ -15,7 +15,6 @@
 
 { Include syscall itself }
 {i syscallo.inc}
-
 Function Sys_mmap(adr,len,prot,flags,fdes,off:longint):longint; // moved from sysunix.inc, used in sbrk
 
 begin
@@ -33,6 +32,7 @@ begin
   if (pointer(func)=nil) or (sp=nil) then
    exit(-1); // give an error result
 {$ifdef cpui386}
+{$ASMMODE ATT}
   asm
         { Insert the argument onto the new stack. }
         movl    sp,%ecx
@@ -122,7 +122,10 @@ end;
 
 {
   $Log$
-  Revision 1.1  2003-10-30 16:42:25  marco
+  Revision 1.2  2003-10-31 08:55:11  mazen
+  + assembler mode forced to ATT style for x86 cpu
+
+  Revision 1.1  2003/10/30 16:42:25  marco
    * Killing off old syscall convention anywhere except for oldlinux
 
   Revision 1.19  2003/10/17 20:56:24  olle

+ 2 - 2
rtl/unix/x86.pp

@@ -22,7 +22,7 @@ Procedure WritePortW (Port : Longint; Var Buf; Count: longint);
 Procedure WritePortl (Port : Longint; Var Buf; Count: longint);
 
 implementation
-
+{$ASMMODE ATT}
 
 Procedure WritePort (Port : Longint; Value : Byte);
 {
@@ -286,4 +286,4 @@ begin
   end ['ECX','EDI','EDX'];
 end;
 
-end.
+end.