mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 00:12:52 +00:00
Most implementations of arch_syscall_addr() are the same, so create a default version in common code and move the one piece that differs (the syscall table) to asm/syscall.h. New arch ports don't have to waste time copying & pasting this simple function. The s390/sparc versions need to be different, so document why. Signed-off-by: Mike Frysinger <[email protected]> Acked-by: David S. Miller <[email protected]> Acked-by: Paul Mundt <[email protected]> Acked-by: Heiko Carstens <[email protected]> Cc: Steven Rostedt <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]>
13 lines
220 B
C
13 lines
220 B
C
#ifndef __ASM_SH_SYSCALL_H
|
|
#define __ASM_SH_SYSCALL_H
|
|
|
|
extern const unsigned long sys_call_table[];
|
|
|
|
#ifdef CONFIG_SUPERH32
|
|
# include "syscall_32.h"
|
|
#else
|
|
# include "syscall_64.h"
|
|
#endif
|
|
|
|
#endif /* __ASM_SH_SYSCALL_H */
|