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 ...
|