Skip to content

Commit

Permalink
[PATCH] x86-64: clean up local_add/sub arguments
Browse files Browse the repository at this point in the history
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Sep 12, 2005
1 parent 4b6a455 commit 2ade814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-x86_64/local.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ static __inline__ void local_dec(local_t *v)
:"m" (v->counter));
}

static __inline__ void local_add(unsigned long i, local_t *v)
static __inline__ void local_add(unsigned int i, local_t *v)
{
__asm__ __volatile__(
"addl %1,%0"
:"=m" (v->counter)
:"ir" (i), "m" (v->counter));
}

static __inline__ void local_sub(unsigned long i, local_t *v)
static __inline__ void local_sub(unsigned int i, local_t *v)
{
__asm__ __volatile__(
"subl %1,%0"
Expand Down

0 comments on commit 2ade814

Please sign in to comment.