* configure.ac: Don't use extended registers on x86_64.

Reported by: Peter Jones.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-05-07 20:42:05 +02:00
parent e56d9637ae
commit 89e0240c1c
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
* configure.ac: Don't use extended registers on x86_64.
Reported by: Peter Jones.
2013-05-07 Vladimir Serbinenko <phcoder@gmail.com> 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/term/efi/console.c: Fix compile error. * grub-core/term/efi/console.c: Fix compile error.

View file

@ -464,7 +464,9 @@ if test "x$target_cpu" = xi386; then
else else
TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1" TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
fi fi
fi
if test "x$target_cpu" = xi386 || test "x$target_cpu" = xx86_64; then
# Some toolchains enable these features by default, but they need # Some toolchains enable these features by default, but they need
# registers that aren't set up properly in GRUB. # registers that aren't set up properly in GRUB.
TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow" TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"