6809: Adjust syscall argument passing to caller convention
authorTormod Volden <debian.tormod@gmail.com>
Thu, 16 Apr 2015 22:00:18 +0000 (00:00 +0200)
committerAlan Cox <alan@linux.intel.com>
Sat, 18 Apr 2015 20:59:20 +0000 (21:59 +0100)
commit4851846370a543194678533ee64d645504b9b326
tree76338e4f12aff395b0103eadd0f0318b3580d273
parentad80b15bb908beac2d9c75ea5252846353a1f4e3
6809: Adjust syscall argument passing to caller convention

The calling user process will put the first argument in
X and the rest on the stack. Make sure this get carried over
to u_argn etc correctly.

Also make sure the return values from the system call is
handed back to the caller through the rti.

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