Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272982
b: refs/heads/master
c: 3d72210
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Richard Weinberger committed Nov 2, 2011
1 parent 869cb3d commit 084b803
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 33 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: 3c916fec12ab614aca5cf6ec09ae3adc6b911193
refs/heads/master: 3d72210bdc1ef67b72ffbd3e74873cae7287f2c6
1 change: 0 additions & 1 deletion trunk/arch/um/include/shared/kern_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ extern unsigned long alloc_stack(int order, int atomic);
extern void free_stack(unsigned long stack, int order);

extern int do_signal(void);
extern void copy_sc(struct uml_pt_regs *regs, void *from);
extern void interrupt_end(void);
extern void relay_signal(int sig, struct uml_pt_regs *regs);

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/sys-i386/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "frame_kern.h"
#include "skas.h"

void copy_sc(struct uml_pt_regs *regs, void *from)
static void copy_sc(struct uml_pt_regs *regs, void *from)
{
struct sigcontext *sc = from;

Expand Down
30 changes: 0 additions & 30 deletions trunk/arch/um/sys-x86_64/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,6 @@
#include "frame_kern.h"
#include "skas.h"

void copy_sc(struct uml_pt_regs *regs, void *from)
{
struct sigcontext *sc = from;

#define GETREG(regs, regno, sc, regname) \
(regs)->gp[(regno) / sizeof(unsigned long)] = (sc)->regname

GETREG(regs, R8, sc, r8);
GETREG(regs, R9, sc, r9);
GETREG(regs, R10, sc, r10);
GETREG(regs, R11, sc, r11);
GETREG(regs, R12, sc, r12);
GETREG(regs, R13, sc, r13);
GETREG(regs, R14, sc, r14);
GETREG(regs, R15, sc, r15);
GETREG(regs, RDI, sc, di);
GETREG(regs, RSI, sc, si);
GETREG(regs, RBP, sc, bp);
GETREG(regs, RBX, sc, bx);
GETREG(regs, RDX, sc, dx);
GETREG(regs, RAX, sc, ax);
GETREG(regs, RCX, sc, cx);
GETREG(regs, RSP, sc, sp);
GETREG(regs, RIP, sc, ip);
GETREG(regs, EFLAGS, sc, flags);
GETREG(regs, CS, sc, cs);

#undef GETREG
}

static int copy_sc_from_user(struct pt_regs *regs,
struct sigcontext __user *from)
{
Expand Down

0 comments on commit 084b803

Please sign in to comment.