Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164895
b: refs/heads/master
c: 18c1e2c
h: refs/heads/master
i:
  164893: fe069f6
  164891: 701d293
  164887: 64f4932
  164879: e4a53f6
  164863: 2e05ccb
v: v3
  • Loading branch information
Roland McGrath committed Sep 23, 2009
1 parent 12451af commit 609f0e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: 268e46712d57a6493cc0f98e7d200a0f674c31ed
refs/heads/master: 18c1e2c80d92adca50ffc654617639a4aa35f29c
14 changes: 7 additions & 7 deletions trunk/arch/x86/include/asm/syscall.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Access to user system call parameters and results
*
* Copyright (C) 2008 Red Hat, Inc. All rights reserved.
* Copyright (C) 2008-2009 Red Hat, Inc. All rights reserved.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
Expand All @@ -16,13 +16,13 @@
#include <linux/sched.h>
#include <linux/err.h>

static inline long syscall_get_nr(struct task_struct *task,
struct pt_regs *regs)
/*
* Only the low 32 bits of orig_ax are meaningful, so we return int.
* This importantly ignores the high bits on 64-bit, so comparisons
* sign-extend the low 32 bits.
*/
static inline int syscall_get_nr(struct task_struct *task, struct pt_regs *regs)
{
/*
* We always sign-extend a -1 value being set here,
* so this is always either -1L or a syscall number.
*/
return regs->orig_ax;
}

Expand Down

0 comments on commit 609f0e2

Please sign in to comment.