History log of /netbsd-src/lib/libc/arch/or1k/syscallargs.awk (Results 1 – 1 of 1)
Revision Date Author Comments
# abb9139a 05-Sep-2014 matt <matt@NetBSD.org>

The OpenRISC calling standard only passes 6 parameters by register. Any
others are passed on the stack. NetBSD syscalls use up to 8 parameters
so that could mean two left on the stack for the kerne

The OpenRISC calling standard only passes 6 parameters by register. Any
others are passed on the stack. NetBSD syscalls use up to 8 parameters
so that could mean two left on the stack for the kernel to access. It's
easier for the kernel if userland could fetch into registers beforehand.
So we generate sysassym.h which contains the number of arguments for each
syscall and then use that to determine how many arguments need to be fetched
from the stack.

show more ...