瀏覽代碼

netbsd: arm also needs USE_SIGACTION_SIGTRAMP

git-svn-id: trunk@38592 -
Károly Balogh 7 年之前
父節點
當前提交
ff28ce84b2
共有 2 個文件被更改,包括 9 次插入2 次删除
  1. 8 1
      rtl/netbsd/arm/sighnd.inc
  2. 1 1
      rtl/netbsd/sysnr.inc

+ 8 - 1
rtl/netbsd/arm/sighnd.inc

@@ -5,7 +5,7 @@
    See the file COPYING.FPC, included in this distribution,
    See the file COPYING.FPC, included in this distribution,
    for details about the copyright.
    for details about the copyright.
 
 
-   Signalhandler for NetBSD/m68k
+   Signalhandler for NetBSD/arm
 
 
    This program is distributed in the hope that it will be useful,
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY;without even the implied warranty of
    but WITHOUT ANY WARRANTY;without even the implied warranty of
@@ -19,6 +19,13 @@ begin
   getfpustate:=0;
   getfpustate:=0;
 end;
 end;
 
 
+procedure signal_trampoline; cdecl;
+begin
+{$WARNING fix me! - signal trampoline}
+end;
+
+
+
 procedure SignalToRunerror(Signo: longint;info : PSigInfo;SigContext: PSigContextRec); public name '_FPC_DEFAULTSIGHANDLER'; cdecl;
 procedure SignalToRunerror(Signo: longint;info : PSigInfo;SigContext: PSigContextRec); public name '_FPC_DEFAULTSIGHANDLER'; cdecl;
 var
 var
   res : word;
   res : word;

+ 1 - 1
rtl/netbsd/sysnr.inc

@@ -501,7 +501,7 @@ const
   { syscall: "__sigaction_sigtramp" ret: "int" args: "int" "const struct sigaction *"
   { syscall: "__sigaction_sigtramp" ret: "int" args: "int" "const struct sigaction *"
              "struct sigaction *" "const void *" "int"  }
              "struct sigaction *" "const void *" "int"  }
      syscall_nr___sigaction_sigtramp = syscall_nr_base + 340;
      syscall_nr___sigaction_sigtramp = syscall_nr_base + 340;
-{$ifdef CPUX86_64}
+{$if defined(CPUX86_64) or defined(CPUARM)}
   {$define USE_SIGACTION_SIGTRAMP}
   {$define USE_SIGACTION_SIGTRAMP}
 {$endif}
 {$endif}
   { syscall: "kqueue" ret: "int" args: }
   { syscall: "kqueue" ret: "int" args: }