Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88586
b: refs/heads/master
c: 9902a70
h: refs/heads/master
v: v3
  • Loading branch information
Harvey Harrison authored and Ingo Molnar committed Apr 17, 2008
1 parent be620eb commit 071c035
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 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: 92bc2056855b3250bf6fd5849f05f88d85839efa
refs/heads/master: 9902a702c76f904be0057f8647dda9d6f89d4847
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/signal_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka,
int ret;

/* Are we from a system call? */
if (regs->orig_ax >= 0) {
if ((long)regs->orig_ax >= 0) {
/* If so, check system call restarting.. */
switch (regs->ax) {
case -ERESTART_RESTARTBLOCK:
Expand Down Expand Up @@ -625,7 +625,7 @@ static void do_signal(struct pt_regs *regs)
}

/* Did we come from a system call? */
if (regs->orig_ax >= 0) {
if ((long)regs->orig_ax >= 0) {
/* Restart the system call - no handlers present */
switch (regs->ax) {
case -ERESTARTNOHAND:
Expand Down
9 changes: 6 additions & 3 deletions trunk/include/asm-x86/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ struct pt_regs {
unsigned long si;
unsigned long di;
unsigned long bp;
long ax;
unsigned long ax;
unsigned long ds;
unsigned long es;
unsigned long fs;
/* int gs; */
long orig_ax;
unsigned long orig_ax;
unsigned long ip;
unsigned long cs;
unsigned long flags;
Expand Down Expand Up @@ -145,7 +145,10 @@ extern void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, int erro
void signal_fault(struct pt_regs *regs, void __user *frame, char *where);
#endif

#define regs_return_value(regs) ((regs)->ax)
static inline unsigned long regs_return_value(struct pt_regs *regs)
{
return regs->ax;
}

/*
* user_mode_vm(regs) determines whether a register set came from user mode.
Expand Down

0 comments on commit 071c035

Please sign in to comment.