git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
i8k: Avoid lahf in 64-bit code
[pandora-kernel.git]
/
drivers
/
char
/
i8k.c
diff --git
a/drivers/char/i8k.c
b/drivers/char/i8k.c
index
d72433f
..
ee01716
100644
(file)
--- a/
drivers/char/i8k.c
+++ b/
drivers/char/i8k.c
@@
-139,8
+139,8
@@
static int i8k_smm(struct smm_regs *regs)
"movl %%edi,20(%%rax)\n\t"
"popq %%rdx\n\t"
"movl %%edx,0(%%rax)\n\t"
- "
lahf
\n\t"
- "
shrl $8,%%e
ax\n\t"
+ "
pushfq
\n\t"
+ "
popq %%r
ax\n\t"
"andl $1,%%eax\n"
:"=a"(rc)
: "a"(regs)