summaryrefslogtreecommitdiffstats
path: root/arch/score/kernel/entry.S
Commit message (Collapse)AuthorAgeFilesLines
* Score: The commit is for compiling successfully.Lennox Wu2013-09-261-2/+2
| | | | | | | | | | | The modifications include: 1. Kconfig of Score: we don't support ioremap 2. Missed headfile including 3. There are some errors in other people's commit not checked by us, we fix it now 3.1 arch/score/kernel/entry.S: wrong instructions 3.2 arch/score/kernel/process.c : just some typos Signed-off-by: Lennox Wu <lennox.wu@gmail.com>
* score: switch to generic sigaltstackAl Viro2013-02-031-5/+0
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* score: switch to generic fork/vfork/cloneAl Viro2012-11-281-18/+0
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* score: switch to generic sys_execve()Al Viro2012-10-151-5/+0
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* score: switch to generic kernel_thread()/kernel_execve()Al Viro2012-10-151-0/+7
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* score: fix off-by-one index into syscall tableDan Rosenberg2012-01-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | If the provided system call number is equal to __NR_syscalls, the current check will pass and a function pointer just after the system call table may be called, since sys_call_table is an array with total size __NR_syscalls. Whether or not this is a security bug depends on what the compiler puts immediately after the system call table. It's likely that this won't do anything bad because there is an additional NULL check on the syscall entry, but if there happens to be a non-NULL value immediately after the system call table, this may result in local privilege escalation. Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com> Cc: <stable@vger.kernel.org> Cc: Chen Liqin <liqin.chen@sunplusct.com> Cc: Lennox Wu <lennox.wu@gmail.com> Cc: Eugene Teo <eugeneteo@kernel.sg> Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* score: add old syscall supportChen Liqin2009-08-301-0/+13
|
* score: move save arg5 and arg6 instruction in front of enable_irqChen Liqin2009-06-221-2/+2
| | | | | | | | | Because enable_irq clobber r8 before arg5 was saved. modified: arch/score/kernel/entry.S Signed-off-by: Chen Liqin <liqin.chen@sunplusct.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
* score: add generic sys_call_tableArnd Bergmann2009-06-191-44/+3
| | | | | | | | | | | | | | | | | | | 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>
* score: update files according to review commentsChen Liqin2009-06-191-3/+3
| | | | | | | | | | | | | | | | | | | | modified: arch/score/include/asm/cacheflush.h modified: arch/score/include/asm/delay.h modified: arch/score/include/asm/errno.h modified: arch/score/include/asm/pgtable-bits.h modified: arch/score/include/asm/pgtable.h modified: arch/score/include/asm/ptrace.h modified: arch/score/include/asm/unistd.h modified: arch/score/kernel/entry.S modified: arch/score/kernel/process.c modified: arch/score/kernel/ptrace.c modified: arch/score/kernel/signal.c modified: arch/score/kernel/sys_score.c modified: arch/score/kernel/traps.c modified: arch/score/mm/cache.c Signed-off-by: Chen Liqin <liqin.chen@sunplusct.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
* score: Add support for Sunplus S+core architectureChen Liqin2009-06-191-0/+542
This is the complete set of new arch Score's files for linux. Score instruction set support 16bits, 32bits and 64bits instruction, Score SOC had been used in game machine and LCD TV. Signed-off-by: Chen Liqin <liqin.chen@sunplusct.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>