Commit d172827c authored by Luca Tettamanti's avatar Luca Tettamanti Committed by Willy Tarreau
Browse files

i8k: Avoid lahf in 64-bit code



commit bc1f419c 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: 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: Massimo Dal Zotto <dz@debian.org>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
parent 1e1df1cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment