Subject: [PATCH 21/91] um: Get rid of UPT_SET/UPT_REG macros
Subsystems (2)
the only users are arch getreg()/putreg() and it's easier to handle it there instead of playing with macros from hell
Signed-off-by Al Viro <[email protected]>
--- arch/um/include/asm/ptrace-generic.h | 3 - arch/um/sys-i386/ptrace.c | 69 ++++++++++++++++---- arch/um/sys-i386/shared/sysdep/ptrace.h | 53 --------------- arch/um/sys-x86_64/ptrace.c | 103 ++++++++++++++++++++++++---- arch/um/sys-x86_64/shared/sysdep/ptrace.h | 75 --------------------- 5 files changed, 145 insertions(+), 158 deletions(-)
arch/um/include/asm/ptrace-generic.h +0 -3
@@ -23,9 +23,6 @@ struct 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)
arch/um/sys-i386/ptrace.c +57 -12
109 lines not on this page · raw message
arch/um/sys-i386/shared/sysdep/ptrace.h +0 -53
59 lines not on this page · raw message
arch/um/sys-x86_64/ptrace.c +88 -15
140 lines not on this page · raw message
arch/um/sys-x86_64/shared/sysdep/ptrace.h +0 -75
81 lines not on this page · raw message
Signature · 1 line
1.7.2.5