Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273039
b: refs/heads/master
c: 3579a38
h: refs/heads/master
i:
  273037: d0847be
  273035: 6726357
  273031: afb7c8d
  273023: 9144942
v: v3
  • Loading branch information
Al Viro authored and Richard Weinberger committed Nov 2, 2011
1 parent f72c2a9 commit 7bcafbb
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 64 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8edc4147bec5b7b92b48a6013ec99c41b16c5f93
refs/heads/master: 3579a389730dd74d9f280152c52aa851dd1da860
14 changes: 7 additions & 7 deletions trunk/arch/x86/um/ptrace_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ int is_syscall(unsigned long addr)
#define FLAG_MASK 0x00044dd5

static const int reg_offsets[] = {
[EBX] = HOST_EBX,
[ECX] = HOST_ECX,
[EDX] = HOST_EDX,
[ESI] = HOST_ESI,
[EDI] = HOST_EDI,
[EBP] = HOST_EBP,
[EAX] = HOST_EAX,
[EBX] = HOST_BX,
[ECX] = HOST_CX,
[EDX] = HOST_DX,
[ESI] = HOST_SI,
[EDI] = HOST_DI,
[EBP] = HOST_BP,
[EAX] = HOST_AX,
[DS] = HOST_DS,
[ES] = HOST_ES,
[FS] = HOST_FS,
Expand Down
14 changes: 7 additions & 7 deletions trunk/arch/x86/um/ptrace_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ static const int reg_offsets[] =
[R15 >> 3] = HOST_R15,
[RIP >> 3] = HOST_IP,
[RSP >> 3] = HOST_SP,
[RAX >> 3] = HOST_RAX,
[RBX >> 3] = HOST_RBX,
[RCX >> 3] = HOST_RCX,
[RDX >> 3] = HOST_RDX,
[RSI >> 3] = HOST_RSI,
[RDI >> 3] = HOST_RDI,
[RBP >> 3] = HOST_RBP,
[RAX >> 3] = HOST_AX,
[RBX >> 3] = HOST_BX,
[RCX >> 3] = HOST_CX,
[RDX >> 3] = HOST_DX,
[RSI >> 3] = HOST_SI,
[RDI >> 3] = HOST_DI,
[RBP >> 3] = HOST_BP,
[CS >> 3] = HOST_CS,
[SS >> 3] = HOST_SS,
[FS_BASE >> 3] = HOST_FS_BASE,
Expand Down
14 changes: 7 additions & 7 deletions trunk/arch/x86/um/shared/sysdep/ptrace_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ extern int sysemu_supported;
#define REGS_IP(r) ((r)[HOST_IP])
#define REGS_SP(r) ((r)[HOST_SP])
#define REGS_EFLAGS(r) ((r)[HOST_EFLAGS])
#define REGS_EAX(r) ((r)[HOST_EAX])
#define REGS_EBX(r) ((r)[HOST_EBX])
#define REGS_ECX(r) ((r)[HOST_ECX])
#define REGS_EDX(r) ((r)[HOST_EDX])
#define REGS_ESI(r) ((r)[HOST_ESI])
#define REGS_EDI(r) ((r)[HOST_EDI])
#define REGS_EBP(r) ((r)[HOST_EBP])
#define REGS_EAX(r) ((r)[HOST_AX])
#define REGS_EBX(r) ((r)[HOST_BX])
#define REGS_ECX(r) ((r)[HOST_CX])
#define REGS_EDX(r) ((r)[HOST_DX])
#define REGS_ESI(r) ((r)[HOST_SI])
#define REGS_EDI(r) ((r)[HOST_DI])
#define REGS_EBP(r) ((r)[HOST_BP])
#define REGS_CS(r) ((r)[HOST_CS])
#define REGS_SS(r) ((r)[HOST_SS])
#define REGS_DS(r) ((r)[HOST_DS])
Expand Down
14 changes: 7 additions & 7 deletions trunk/arch/x86/um/shared/sysdep/ptrace_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
#define REGS_IP(r) ((r)[HOST_IP])
#define REGS_SP(r) ((r)[HOST_SP])

#define REGS_RBX(r) ((r)[HOST_RBX])
#define REGS_RCX(r) ((r)[HOST_RCX])
#define REGS_RDX(r) ((r)[HOST_RDX])
#define REGS_RSI(r) ((r)[HOST_RSI])
#define REGS_RDI(r) ((r)[HOST_RDI])
#define REGS_RBP(r) ((r)[HOST_RBP])
#define REGS_RAX(r) ((r)[HOST_RAX])
#define REGS_RBX(r) ((r)[HOST_BX])
#define REGS_RCX(r) ((r)[HOST_CX])
#define REGS_RDX(r) ((r)[HOST_DX])
#define REGS_RSI(r) ((r)[HOST_SI])
#define REGS_RDI(r) ((r)[HOST_DI])
#define REGS_RBP(r) ((r)[HOST_BP])
#define REGS_RAX(r) ((r)[HOST_AX])
#define REGS_R8(r) ((r)[HOST_R8])
#define REGS_R9(r) ((r)[HOST_R9])
#define REGS_R10(r) ((r)[HOST_R10])
Expand Down
14 changes: 7 additions & 7 deletions trunk/arch/x86/um/signal_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,14 @@ static int copy_sc_from_user(struct pt_regs *regs,
GETREG(FS, fs);
GETREG(ES, es);
GETREG(DS, ds);
GETREG(EDI, di);
GETREG(ESI, si);
GETREG(EBP, bp);
GETREG(DI, di);
GETREG(SI, si);
GETREG(BP, bp);
GETREG(SP, sp);
GETREG(EBX, bx);
GETREG(EDX, dx);
GETREG(ECX, cx);
GETREG(EAX, ax);
GETREG(BX, bx);
GETREG(DX, dx);
GETREG(CX, cx);
GETREG(AX, ax);
GETREG(IP, ip);
GETREG(CS, cs);
GETREG(EFLAGS, flags);
Expand Down
28 changes: 14 additions & 14 deletions trunk/arch/x86/um/signal_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ static int copy_sc_from_user(struct pt_regs *regs,
GETREG(R13, r13);
GETREG(R14, r14);
GETREG(R15, r15);
GETREG(RDI, di);
GETREG(RSI, si);
GETREG(RBP, bp);
GETREG(RBX, bx);
GETREG(RDX, dx);
GETREG(RAX, ax);
GETREG(RCX, cx);
GETREG(DI, di);
GETREG(SI, si);
GETREG(BP, bp);
GETREG(BX, bx);
GETREG(DX, dx);
GETREG(AX, ax);
GETREG(CX, cx);
GETREG(SP, sp);
GETREG(IP, ip);
GETREG(EFLAGS, flags);
Expand Down Expand Up @@ -78,18 +78,18 @@ static int copy_sc_to_user(struct sigcontext __user *to,

#define PUTREG(regno, regname) sc.regname = regs->regs.gp[HOST_##regno]

PUTREG(RDI, di);
PUTREG(RSI, si);
PUTREG(RBP, bp);
PUTREG(DI, di);
PUTREG(SI, si);
PUTREG(BP, bp);
/*
* Must use original RSP, which is passed in, rather than what's in
* signal frame.
*/
sc.sp = sp;
PUTREG(RBX, bx);
PUTREG(RDX, dx);
PUTREG(RCX, cx);
PUTREG(RAX, ax);
PUTREG(BX, bx);
PUTREG(DX, dx);
PUTREG(CX, cx);
PUTREG(AX, ax);
PUTREG(R8, r8);
PUTREG(R9, r9);
PUTREG(R10, r10);
Expand Down
28 changes: 14 additions & 14 deletions trunk/arch/x86/um/user-offsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ void foo(void)
DEFINE(HOST_IP, EIP);
DEFINE(HOST_SP, UESP);
DEFINE(HOST_EFLAGS, EFL);
DEFINE(HOST_EAX, EAX);
DEFINE(HOST_EBX, EBX);
DEFINE(HOST_ECX, ECX);
DEFINE(HOST_EDX, EDX);
DEFINE(HOST_ESI, ESI);
DEFINE(HOST_EDI, EDI);
DEFINE(HOST_EBP, EBP);
DEFINE(HOST_AX, EAX);
DEFINE(HOST_BX, EBX);
DEFINE(HOST_CX, ECX);
DEFINE(HOST_DX, EDX);
DEFINE(HOST_SI, ESI);
DEFINE(HOST_DI, EDI);
DEFINE(HOST_BP, EBP);
DEFINE(HOST_CS, CS);
DEFINE(HOST_SS, SS);
DEFINE(HOST_DS, DS);
Expand All @@ -38,13 +38,13 @@ void foo(void)
DEFINE(HOST_GS, GS);
#else
DEFINE(HOST_FP_SIZE, sizeof(struct _fpstate) / sizeof(unsigned long));
DEFINE_LONGS(HOST_RBX, RBX);
DEFINE_LONGS(HOST_RCX, RCX);
DEFINE_LONGS(HOST_RDI, RDI);
DEFINE_LONGS(HOST_RSI, RSI);
DEFINE_LONGS(HOST_RDX, RDX);
DEFINE_LONGS(HOST_RBP, RBP);
DEFINE_LONGS(HOST_RAX, RAX);
DEFINE_LONGS(HOST_BX, RBX);
DEFINE_LONGS(HOST_CX, RCX);
DEFINE_LONGS(HOST_DI, RDI);
DEFINE_LONGS(HOST_SI, RSI);
DEFINE_LONGS(HOST_DX, RDX);
DEFINE_LONGS(HOST_BP, RBP);
DEFINE_LONGS(HOST_AX, RAX);
DEFINE_LONGS(HOST_R8, R8);
DEFINE_LONGS(HOST_R9, R9);
DEFINE_LONGS(HOST_R10, R10);
Expand Down

0 comments on commit 7bcafbb

Please sign in to comment.