summaryrefslogtreecommitdiff
path: root/rtl/netbsd
diff options
context:
space:
mode:
authorkaroly <karoly@3ad0048d-3df7-0310-abae-a5850022a9f2>2017-08-08 14:31:57 +0000
committerkaroly <karoly@3ad0048d-3df7-0310-abae-a5850022a9f2>2017-08-08 14:31:57 +0000
commitd1088d5d2c011e20c08e96ef0707c3694b378ffe (patch)
tree309e54902e3243d2cb0f89cecdde7054fc8c7560 /rtl/netbsd
parent47871a691b7c737c1654029529aa81ba08dd9744 (diff)
downloadfpc-d1088d5d2c011e20c08e96ef0707c3694b378ffe.tar.gz
netbsd/powerpc: made it to build at least. resulting executables probably still crash & burn
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@36859 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'rtl/netbsd')
-rw-r--r--rtl/netbsd/powerpc/dllprt0.as16
-rw-r--r--rtl/netbsd/powerpc/sighnd.inc7
-rw-r--r--rtl/netbsd/signal.inc6
3 files changed, 24 insertions, 5 deletions
diff --git a/rtl/netbsd/powerpc/dllprt0.as b/rtl/netbsd/powerpc/dllprt0.as
new file mode 100644
index 0000000000..21f48d3daf
--- /dev/null
+++ b/rtl/netbsd/powerpc/dllprt0.as
@@ -0,0 +1,16 @@
+#
+# This file is part of the Free Pascal run time library.
+# Copyright (c) 2017 by Karoly Balogh
+# member of the Free Pascal development team.
+#
+# See the file COPYING.FPC, included in this distribution,
+# for details about the copyright.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY;without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+#
+#**********************************************************************}
+#
+
+# FIX ME: dummy file, required for the build to pass, implement! (KB)
diff --git a/rtl/netbsd/powerpc/sighnd.inc b/rtl/netbsd/powerpc/sighnd.inc
index 71c40f32b4..d34cf9a2be 100644
--- a/rtl/netbsd/powerpc/sighnd.inc
+++ b/rtl/netbsd/powerpc/sighnd.inc
@@ -6,7 +6,7 @@
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
- Signalhandler for FreeBSD/i386
+ Signalhandler for NetBSD/powerpc
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY;without even the implied warranty of
@@ -20,7 +20,7 @@ begin
getfpustate:=0;
end;
-procedure SignalToRunerror(signo: cint); public name '_FPC_DEFAULTSIGHANDLER'; cdecl;
+procedure SignalToRunerror(Signo: longint;info : PSigInfo;SigContext: PSigContextRec); public name '_FPC_DEFAULTSIGHANDLER'; cdecl;
var
res : word;
begin
@@ -48,6 +48,3 @@ begin
HandleError(res);
end;
end;
-
-
-
diff --git a/rtl/netbsd/signal.inc b/rtl/netbsd/signal.inc
index ec3ac48f78..42616980a1 100644
--- a/rtl/netbsd/signal.inc
+++ b/rtl/netbsd/signal.inc
@@ -293,6 +293,12 @@ enum { _FRAME_GREG(GREG_OFFSETS) _NGREG = 26 };
{$WARNING FIXME! SigContextRec}
end;
{$endif m68k}
+{$ifdef CPUPOWERPC}
+ SigContextRec = record
+ sc_args : array[0..6] of clong;
+ {$WARNING FIXME! SigContextRec}
+ end;
+{$endif powerpc}
SignalHandler = Procedure(Sig : Longint);cdecl;
PSignalHandler = ^SignalHandler;