X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-um%2Fptrace-generic.h;h=99c87c5ce994645d8b62d81611e530fb2a711725;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=c5a13e609b1d4f814daf6e09506ce69806ec57cb;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/asm-um/ptrace-generic.h b/include/asm-um/ptrace-generic.h index c5a13e609..99c87c5ce 100644 --- a/include/asm-um/ptrace-generic.h +++ b/include/asm-um/ptrace-generic.h @@ -8,28 +8,14 @@ #ifndef __ASSEMBLY__ -#include "linux/config.h" - -#include "asm/current.h" - -#define pt_regs pt_regs_subarch -#define show_regs show_regs_subarch - -#include "asm/arch/ptrace.h" - -#undef pt_regs -#undef show_regs -#undef user_mode -#undef instruction_pointer - +#include "asm/arch/ptrace-abi.h" #include "sysdep/ptrace.h" -#include "skas_ptrace.h" struct pt_regs { union uml_pt_regs regs; }; -#define EMPTY_REGS { regs : EMPTY_UML_PT_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) @@ -45,6 +31,8 @@ struct pt_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); @@ -56,17 +44,12 @@ extern int set_fpxregs(unsigned long buf, struct task_struct *tsk); extern void show_regs(struct pt_regs *regs); -#endif +extern void send_sigtrap(struct task_struct *tsk, union 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 -/* - * Overrides for Emacs so that we follow Linus's tabbing style. - * Emacs will notice this stuff at the end of the file and automatically - * adjust the settings for this buffer only. This must remain at the end - * of the file. - * --------------------------------------------------------------------------- - * Local variables: - * c-file-style: "linux" - * End: - */ +#endif