]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i8k: Avoid lahf in 64-bit code
authorLuca Tettamanti <kronos.it@gmail.com>
Wed, 25 May 2011 18:43:31 +0000 (20:43 +0200)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 17 May 2012 15:20:38 +0000 (11:20 -0400)
commit1e08fb3a81dd6c30140642657c60eca861a2400e
treec6f095cb9e7edae9666d3426dff8a1632798c7b0
parent12484758f50f235fc6cd7469139503dbc89faa46
i8k: Avoid lahf in 64-bit code

commit bc1f419c76a2d6450413ce4349f4e4a07be011d5 upstream.

i8k uses lahf to read the flag register in 64-bit code; early x86-64
CPUs, however, lack this instruction and we get an invalid opcode
exception at runtime.
Use pushf to load the flag register into the stack instead.

Signed-off-by: Luca Tettamanti <kronos.it@gmail.com>
Reported-by: Jeff Rickman <jrickman@myamigos.us>
Tested-by: Jeff Rickman <jrickman@myamigos.us>
Tested-by: Harry G McGavran Jr <w5pny@arrl.net>
Cc: Massimo Dal Zotto <dz@debian.org>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/char/i8k.c