compat.h (664b0bae0b87f69bc9deb098f5e0158b9cf18e04) compat.h (71d577db01a5177c7807a2f3d3df9bab9d21c500)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_PARISC_COMPAT_H
3#define _ASM_PARISC_COMPAT_H
4/*
5 * Architecture specific compatibility types
6 */
7#include <linux/types.h>
8#include <linux/sched.h>

--- 179 unchanged lines hidden (view full) ---

188 compat_pid_t shm_cpid;
189 compat_pid_t shm_lpid;
190 compat_ulong_t shm_nattch;
191 compat_ulong_t __unused5;
192 compat_ulong_t __unused6;
193};
194
195/*
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_PARISC_COMPAT_H
3#define _ASM_PARISC_COMPAT_H
4/*
5 * Architecture specific compatibility types
6 */
7#include <linux/types.h>
8#include <linux/sched.h>

--- 179 unchanged lines hidden (view full) ---

188 compat_pid_t shm_cpid;
189 compat_pid_t shm_lpid;
190 compat_ulong_t shm_nattch;
191 compat_ulong_t __unused5;
192 compat_ulong_t __unused6;
193};
194
195/*
196 * The type of struct elf_prstatus.pr_reg in compatible core dumps.
197 */
198#define COMPAT_ELF_NGREG 80
199typedef compat_ulong_t compat_elf_gregset_t[COMPAT_ELF_NGREG];
200
201/*
196 * A pointer passed in from user mode. This should not
197 * be used for syscall parameters, just declare them
198 * as pointers because the syscall entry code will have
199 * appropriately converted them already.
200 */
201
202static inline void __user *compat_ptr(compat_uptr_t uptr)
203{

--- 25 unchanged lines hidden ---
202 * A pointer passed in from user mode. This should not
203 * be used for syscall parameters, just declare them
204 * as pointers because the syscall entry code will have
205 * appropriately converted them already.
206 */
207
208static inline void __user *compat_ptr(compat_uptr_t uptr)
209{

--- 25 unchanged lines hidden ---