mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 18:24:14 +08:00
e28cbf2293
On an architecture that supports 32-bit compat we need to override the reported machine in uname with the 32-bit value. Instead of doing this separately in every architecture introduce a COMPAT_UTS_MACHINE define in <asm/compat.h> and apply it directly in sys_newuname(). Signed-off-by: Christoph Hellwig <hch@lst.de> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mundt <lethal@linux-sh.org> Cc: Jeff Dike <jdike@addtoit.com> Cc: Hirokazu Takata <takata@linux-m32r.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@elte.hu> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: "Luck, Tony" <tony.luck@intel.com> Cc: James Morris <jmorris@namei.org> Cc: Andreas Schwab <schwab@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
44 lines
1.7 KiB
C
44 lines
1.7 KiB
C
#ifndef _SYSTBLS_H
|
|
#define _SYSTBLS_H
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/types.h>
|
|
#include <asm/utrap.h>
|
|
#include <asm/signal.h>
|
|
|
|
extern asmlinkage unsigned long sys_getpagesize(void);
|
|
extern asmlinkage long sparc_pipe(struct pt_regs *regs);
|
|
extern asmlinkage long sys_sparc_ipc(unsigned int call, int first,
|
|
unsigned long second,
|
|
unsigned long third,
|
|
void __user *ptr, long fifth);
|
|
extern asmlinkage long sparc64_personality(unsigned long personality);
|
|
extern asmlinkage long sys64_munmap(unsigned long addr, size_t len);
|
|
extern asmlinkage unsigned long sys64_mremap(unsigned long addr,
|
|
unsigned long old_len,
|
|
unsigned long new_len,
|
|
unsigned long flags,
|
|
unsigned long new_addr);
|
|
extern asmlinkage unsigned long c_sys_nis_syscall(struct pt_regs *regs);
|
|
extern asmlinkage long sys_getdomainname(char __user *name, int len);
|
|
extern asmlinkage long sys_utrap_install(utrap_entry_t type,
|
|
utrap_handler_t new_p,
|
|
utrap_handler_t new_d,
|
|
utrap_handler_t __user *old_p,
|
|
utrap_handler_t __user *old_d);
|
|
extern asmlinkage long sparc_memory_ordering(unsigned long model,
|
|
struct pt_regs *regs);
|
|
extern asmlinkage long sys_rt_sigaction(int sig,
|
|
const struct sigaction __user *act,
|
|
struct sigaction __user *oact,
|
|
void __user *restorer,
|
|
size_t sigsetsize);
|
|
|
|
extern asmlinkage void sparc64_set_context(struct pt_regs *regs);
|
|
extern asmlinkage void sparc64_get_context(struct pt_regs *regs);
|
|
extern asmlinkage long sys_sigpause(unsigned int set);
|
|
extern asmlinkage long sys_sigsuspend(old_sigset_t set);
|
|
extern void do_rt_sigreturn(struct pt_regs *regs);
|
|
|
|
#endif /* _SYSTBLS_H */
|