Lines Matching +full:main +full:- +full:storage
2 * ptrace for 32-bit processes running on a 64-bit kernel.
5 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
16 * Public License. See the file COPYING in the main directory of
26 #include "ptrace-decl.h"
34 #define FPRNUMBER(i) (((i) - PT_FPR0) >> 1)
35 #define FPRHALF(i) (((i) - PT_FPR0) & 1)
47 * Read 4 bytes of the other process' storage in compat_arch_ptrace()
50 * addr is a pointer in the user's storage that contains an 8 byte in compat_arch_ptrace()
52 * (this is run in a 32-bit process looking at a 64-bit process) in compat_arch_ptrace()
61 ret = -EIO; in compat_arch_ptrace()
80 ret = -EIO; in compat_arch_ptrace()
94 * to be an array of unsigned int (32 bits) - the in compat_arch_ptrace()
97 tmp = ((unsigned int *)child->thread.fp_state.fpr) in compat_arch_ptrace()
110 * (this is run in a 32-bit process looking at a 64-bit process) in compat_arch_ptrace()
119 ret = -EIO; in compat_arch_ptrace()
125 part = 1; /* want the 2nd half of the register (right-most). */ in compat_arch_ptrace()
127 part = 0; /* want the 1st half of the register (left-most). */ in compat_arch_ptrace()
129 /* Validate the input - check to see if address is on the wrong boundary in compat_arch_ptrace()
138 tmp = child->thread.fp_state.fpr[numReg - PT_FPR0][0]; in compat_arch_ptrace()
152 * Write 4 bytes into the other process' storage in compat_arch_ptrace()
154 * addr is a pointer in the user's storage that contains an in compat_arch_ptrace()
157 * (this is run in a 32-bit process looking at a 64-bit process) in compat_arch_ptrace()
166 ret = -EIO; in compat_arch_ptrace()
174 ret = -EIO; in compat_arch_ptrace()
182 ret = -EIO; in compat_arch_ptrace()
194 * to be an array of unsigned int (32 bits) - the in compat_arch_ptrace()
197 ((unsigned int *)child->thread.fp_state.fpr) in compat_arch_ptrace()
209 * (this is run in a 32-bit process looking at a 64-bit process) in compat_arch_ptrace()
215 ret = -EIO; in compat_arch_ptrace()
221 * Validate the input - check to see if address is on the in compat_arch_ptrace()
240 tmp = &child->thread.fp_state.fpr[numReg - PT_FPR0][0]; in compat_arch_ptrace()
252 ret = -EINVAL; in compat_arch_ptrace()
257 ret = put_user(child->thread.debug.dac1, (u32 __user *)data); in compat_arch_ptrace()
260 (child->thread.hw_brk[0].address & (~HW_BRK_TYPE_DABR)) | in compat_arch_ptrace()
261 (child->thread.hw_brk[0].type & HW_BRK_TYPE_DABR)); in compat_arch_ptrace()