/*1* Copyright (C) 2002 Richard Hirst <rhirst at parisc-linux.org>2* Copyright (C) 2003 James Bottomley <jejb at parisc-linux.org>3* Copyright (C) 2003 Randolph Chung <tausq with parisc-linux.org>4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public License for more details.14*15* You should have received a copy of the GNU General Public License16* along with this program; if not, write to the Free Software17* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA18*/19#ifndef _PARISC64_KERNEL_SYS32_H20#define _PARISC64_KERNEL_SYS32_H2122#include <linux/compat.h>2324/* Call a kernel syscall which will use kernel space instead of user25* space for its copy_to/from_user.26*/27#define KERNEL_SYSCALL(ret, syscall, args...) \28{ \29mm_segment_t old_fs = get_fs(); \30set_fs(KERNEL_DS); \31ret = syscall(args); \32set_fs (old_fs); \33}3435#ifdef CONFIG_COMPAT3637typedef __u32 __sighandler_t32;3839struct sigaction32 {40__sighandler_t32 sa_handler;41unsigned int sa_flags;42compat_sigset_t sa_mask; /* mask last for extensibility */43};4445#endif4647#endif484950