6809 Fix syscall glue for variadic functions
authorTormod Volden <debian.tormod@gmail.com>
Thu, 16 Apr 2015 22:00:19 +0000 (00:00 +0200)
committerAlan Cox <alan@linux.intel.com>
Sat, 18 Apr 2015 20:59:21 +0000 (21:59 +0100)
commit5736885db2ba7d0d3d5487c5502c9a56123c4710
tree23ad9a208af33f11c3b6d469f6824dccbeb3e00a
parent4851846370a543194678533ee64d645504b9b326
6809 Fix syscall glue for variadic functions

gcc6809 uses a fastcall calling convention with the first argument
in X, the second and up on the stack. However, variadic functions
get all the arguments on the stack. We therefore mangle the stack
for these functions so that they appear as fastcall to the kernel.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Library/libs/fuzix6809/syscall6809.s
Library/tools/syscall_6809.c