Skip to contentSkip to conversation

Subject: [PATCH 21/91] um: Get rid of UPT_SET/UPT_REG macros

PATCH Al Viro 1 participant 1 message Aug 18, 2011

Subsystems (2)
lore
Share & tools
lore

Al Viro

author
#0 lore raw

the only users are arch getreg()/putreg() and it's easier to handle it there instead of playing with macros from hell

---
 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
index ae084ad..d7c94e4 100644
@@ -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