score: add generic sys_call_table
authorArnd Bergmann <arnd@arndb.de>
Fri, 19 Jun 2009 09:31:54 +0000 (11:31 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 19 Jun 2009 12:10:33 +0000 (14:10 +0200)
commitf673c032ed13ed8f3fda5922c2190da2892398bc
tree8e1145ed21188c77ffdfacba2b22a529c8ddb938
parent78229db4c4f78f27ecf772fe7489a70530ba9862
score: add generic sys_call_table

This adds back a sys_call_table to the score architecture, which
got lost in the conversion to the generic unistd.h file.
It's rather worrying that the code got submitted without a
system call table, which evidently means that it got zero
testing.

Since the system call table has a different layout from the old
one (which was modeled after the mips-o32 one), I also try to
fix the entry.S path to use it. In the modified calling conventions,
all system call arguments are passed as registers r4 through r9,
instead of r4 through r7 plus stack for the fifth and sixth argument.

This matches what other architectures to when they normally pass
arguments on the stack.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/score/kernel/Makefile
arch/score/kernel/entry.S
arch/score/kernel/sys_call_table.c [new file with mode: 0644]
arch/score/kernel/sys_score.c