Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158653
b: refs/heads/master
c: ab94fcf
h: refs/heads/master
i:
  158651: 25549e1
v: v3
  • Loading branch information
H. Peter Anvin committed Aug 25, 2009
1 parent 18b0fa6 commit 5a5fcdc
Show file tree
Hide file tree
Showing 2 changed files with 5 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: e8a2eb47e6ca03d4a4f98f0beef73720c5dddc0c
refs/heads/master: ab94fcf528d127fcb490175512a8910f37e5b346
9 changes: 4 additions & 5 deletions trunk/arch/x86/include/asm/irqflags.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ static inline unsigned long native_save_fl(void)
unsigned long flags;

/*
* Note: this needs to be "=r" not "=rm", because we have the
* stack offset from what gcc expects at the time the "pop" is
* executed, and so a memory reference with respect to the stack
* would end up using the wrong address.
* "=rm" is safe here, because "pop" adjusts the stack before
* it evaluates its effective address -- this is part of the
* documented behavior of the "pop" instruction.
*/
asm volatile("# __raw_save_flags\n\t"
"pushf ; pop %0"
: "=r" (flags)
: "=rm" (flags)
: /* no input */
: "memory");

Expand Down

0 comments on commit 5a5fcdc

Please sign in to comment.