Dmitry V. Levin
0eda4a0a4b
* defs.h (upeek, upoke): Change offset argument type from long to unsigned long. Change res argument type from long to kernel_ureg_t. * upeek.c (upeek): Likewise. * upoke.c (upoke.c): Likewise. * syscall.c (print_pc) [ARCH_PC_PEEK_ADDR]: Change pc type from long to kernel_ureg_t. * linux/aarch64/arch_regs.c (arm_sp_ptr): Remove redundant cast. * linux/metag/get_syscall_args.c (get_syscall_args): Likewise. * linux/sh/get_syscall_result.c (get_syscall_result_regs): Likewise. * linux/sh64/get_syscall_result.c (get_syscall_result_regs): Likewise. * linux/powerpc/getregs_old.c (getregs_old): Remove redundant casts. * linux/alpha/arch_getrval2.c (getrval2): Change r20 type from long to unsigned long. * linux/alpha/arch_regs.c (alpha_r0, alpha_a3): Change type from long to unsigned long. * linux/bfin/arch_regs.c (bfin_r0): Likewise. * linux/crisv10/arch_regs.c (cris_r10): Likewise. * linux/hppa/arch_regs.c (hppa_r28): Likewise. * linux/ia64/arch_regs.c (IA64_PSR_IS): Likewise. * linux/microblaze/arch_regs.c (microblaze_r3): Likewise. * linux/sh/arch_regs.c (sh_r0): Likewise. * linux/sh64/arch_regs.c (sh64_r9): Likewise. * linux/xtensa/arch_regs.c (xtensa_a2): Likewise. * linux/alpha/arch_sigreturn.c (arch_sigreturn): Change addr type from long to unsigned long. * linux/microblaze/arch_sigreturn.c (arch_sigreturn): Likewise. * linux/alpha/get_scno.c (arch_get_scno): Update for the change of signedness. * linux/arc/get_syscall_args.c (get_syscall_args): Change arc_args type from pointer to long to pointer to unsigned long. * linux/arm/arch_regs.c (arm_sp_ptr): Change type from pointer to long to pointer to unsigned long. * linux/arm/arch_regs.h (arm_sp_ptr): Likewise. * linux/i386/arch_regs.c (i386_esp_ptr): Likewise. * linux/i386/arch_regs.h (i386_esp_ptr): Likewise. * linux/m68k/arch_regs.c (m68k_usp_ptr): Likewise. * linux/m68k/arch_regs.h (m68k_usp_ptr): Likewise. * linux/ia64/get_syscall_args.c (get_syscall_args): Use umove instead of umoven. * linux/sh/arch_getrval2.c (getrval2): Change val type from long to unsigned long.
9 lines
117 B
C
9 lines
117 B
C
long
|
|
getrval2(struct tcb *tcp)
|
|
{
|
|
unsigned long r20;
|
|
if (upeek(tcp->pid, 20, &r20) < 0)
|
|
return -1;
|
|
return r20;
|
|
}
|