From 914ac3091910364d0f0f06362dc8326739ce109e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1roly=20Balogh?= Date: Tue, 8 Aug 2017 14:31:57 +0000 Subject: [PATCH] netbsd/powerpc: made it to build at least. resulting executables probably still crash & burn git-svn-id: trunk@36859 - --- .gitattributes | 1 + rtl/netbsd/powerpc/dllprt0.as | 16 ++++++++++++++++ rtl/netbsd/powerpc/sighnd.inc | 7 ++----- rtl/netbsd/signal.inc | 6 ++++++ 4 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 rtl/netbsd/powerpc/dllprt0.as diff --git a/.gitattributes b/.gitattributes index 3c1c732132..b2708254e5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -9587,6 +9587,7 @@ rtl/netbsd/m68k/sighnd.inc svneol=native#text/plain rtl/netbsd/pmutext.inc svneol=native#text/plain rtl/netbsd/powerpc/bsyscall.inc svneol=native#text/plain rtl/netbsd/powerpc/cprt0.as svneol=native#text/plain +rtl/netbsd/powerpc/dllprt0.as svneol=native#text/plain rtl/netbsd/powerpc/prt0.as svneol=native#text/plain rtl/netbsd/powerpc/sighnd.inc svneol=native#text/plain rtl/netbsd/pthread.inc svneol=native#text/plain 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;