77bf440031
This patch makes a number of simplifications enabled by the removal of CHOOSE_MODE. There were lots of functions that looked like int foo(args){ foo_skas(args); } The bodies of foo_skas are now folded into foo, and their declarations (and sometimes entire header files) are deleted. In addition, the union uml_pt_regs, which was a union between the tt and skas register formats, is now a struct, with the tt-mode arm of the union being removed. It turns out that usr2_handler was unused, so it is gone. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
56 lines
1.5 KiB
C
56 lines
1.5 KiB
C
/*
|
|
* Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com)
|
|
* Licensed under the GPL
|
|
*/
|
|
|
|
#ifndef __UM_PTRACE_GENERIC_H
|
|
#define __UM_PTRACE_GENERIC_H
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
#include "asm/arch/ptrace-abi.h"
|
|
#include "sysdep/ptrace.h"
|
|
|
|
struct pt_regs {
|
|
struct uml_pt_regs regs;
|
|
};
|
|
|
|
#define EMPTY_REGS { .regs = EMPTY_UML_PT_REGS }
|
|
|
|
#define PT_REGS_IP(r) UPT_IP(&(r)->regs)
|
|
#define PT_REGS_SP(r) UPT_SP(&(r)->regs)
|
|
|
|
#define PT_REG(r, reg) UPT_REG(&(r)->regs, reg)
|
|
#define PT_REGS_SET(r, reg, val) UPT_SET(&(r)->regs, reg, val)
|
|
|
|
#define PT_REGS_SET_SYSCALL_RETURN(r, res) \
|
|
UPT_SET_SYSCALL_RETURN(&(r)->regs, res)
|
|
#define PT_REGS_RESTART_SYSCALL(r) UPT_RESTART_SYSCALL(&(r)->regs)
|
|
|
|
#define PT_REGS_SYSCALL_NR(r) UPT_SYSCALL_NR(&(r)->regs)
|
|
|
|
#define PT_REGS_SC(r) UPT_SC(&(r)->regs)
|
|
|
|
#define instruction_pointer(regs) PT_REGS_IP(regs)
|
|
|
|
struct task_struct;
|
|
|
|
extern unsigned long getreg(struct task_struct *child, int regno);
|
|
extern int putreg(struct task_struct *child, int regno, unsigned long value);
|
|
extern int get_fpregs(unsigned long buf, struct task_struct *child);
|
|
extern int set_fpregs(unsigned long buf, struct task_struct *child);
|
|
extern int get_fpxregs(unsigned long buf, struct task_struct *child);
|
|
extern int set_fpxregs(unsigned long buf, struct task_struct *tsk);
|
|
|
|
extern void show_regs(struct pt_regs *regs);
|
|
|
|
extern void send_sigtrap(struct task_struct *tsk, struct uml_pt_regs *regs,
|
|
int error_code);
|
|
|
|
extern int arch_copy_tls(struct task_struct *new);
|
|
extern void clear_flushed_tls(struct task_struct *task);
|
|
|
|
#endif
|
|
|
|
#endif
|