ack/plat
George Koehler a585ddf578 Fix parameters of signal handlers for linuxppc.
Linux passes the arguments in registers, but our compiler expects
arguments on the stack.  Signal handlers got garbage instead of the
signal number.  Some handlers, like the one in lang/m2/libm2/sigtrp.c,
need the correct signal number.

I write a "bridge" in PowerPC assembly that moves the arguments to the
stack.  I put the bridge in sigaction(), so I provide a signal() that
calls sigaction().  I remove the *.c glob or wildcard from build.lua,
so linuxppc only compiles its own signal.c, not the other signal.c for
linux386 and linux68k.

My bridge uses sigprocmask(), so I also add sigprocmask().  Because
linux386 and linux68k use globs, they also get sigprocmask().  I sync
the header files so all three Linux platforms declare execve(),
sigprocmask(), and unlink(), but not remove(), because we have
remove() in <stdio.h>.

I am using sigaction.s to test some features that we recently added to
our PowerPC assembler.  These are the "hi16[...]" and "lo16[...]"
syntax, and also the extended names like "beq", "cmpwi", "li", "subi".
2017-01-22 00:52:32 -05:00
..
cpm Fix an issue throughout where B couldn't be built by ackprogram due to symbol 2016-12-29 17:11:53 +00:00
linux/libsys Fix parameters of signal handlers for linuxppc. 2017-01-22 00:52:32 -05:00
linux68k Fix parameters of signal handlers for linuxppc. 2017-01-22 00:52:32 -05:00
linux386 Fix parameters of signal handlers for linuxppc. 2017-01-22 00:52:32 -05:00
linuxppc Fix parameters of signal handlers for linuxppc. 2017-01-22 00:52:32 -05:00
osx Create Mach-o files with mode 0777 to allow executing them. 2016-12-03 17:52:24 -05:00
osx386 Fix an issue throughout where B couldn't be built by ackprogram due to symbol 2016-12-29 17:11:53 +00:00
osxppc Fix an issue throughout where B couldn't be built by ackprogram due to symbol 2016-12-29 17:11:53 +00:00
pc86 Sections are now aligned (required by the EM spec). 2017-01-07 18:47:46 +01:00
qemuppc Add a bunch more set operations to the PowerPC backends, and the Pascal test 2017-01-17 22:31:38 +01:00
rpi Fix an issue throughout where B couldn't be built by ackprogram due to symbol 2016-12-29 17:11:53 +00:00
build.lua Build the B compiler and standard library (also the Basic one, which was 2016-12-29 17:11:07 +00:00