Skip to content
Snippets Groups Projects
Commit bc1f419c authored by Luca Tettamanti's avatar Luca Tettamanti Committed by Jean Delvare
Browse files

i8k: Avoid lahf in 64-bit code


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: default avatarLuca Tettamanti <kronos.it@gmail.com>
Reported-by: default avatarJeff Rickman <jrickman@myamigos.us>
Tested-by: default avatarJeff Rickman <jrickman@myamigos.us>
Tested-by: default avatarHarry G McGavran Jr <w5pny@arrl.net>
Cc: stable@kernel.org
Cc: Massimo Dal Zotto <dz@debian.org>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 4a7df24d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment