nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0464-configure.ac-Don-t-use-extended-registers-on-x86_64.patch

f96e0b
From 71cc19c0677fb7fb073d930dd0bdbbadf1c5ff66 Mon Sep 17 00:00:00 2001
f96e0b
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
f96e0b
Date: Tue, 7 May 2013 20:42:05 +0200
f96e0b
Subject: [PATCH 464/482] 	* configure.ac: Don't use extended registers
f96e0b
 on x86_64. 	Reported by: Peter Jones.
f96e0b
f96e0b
---
f96e0b
 ChangeLog    | 5 +++++
f96e0b
 configure.ac | 2 ++
f96e0b
 2 files changed, 7 insertions(+)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index 5b0b357..db874e5 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,5 +1,10 @@
f96e0b
 2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
 
f96e0b
+	* configure.ac: Don't use extended registers on x86_64.
f96e0b
+	Reported by: Peter Jones.
f96e0b
+
f96e0b
+2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
+
f96e0b
 	* grub-core/term/efi/console.c: Fix compile error.
f96e0b
 
f96e0b
 2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
diff --git a/configure.ac b/configure.ac
f96e0b
index 6c310f7..80549b0 100644
f96e0b
--- a/configure.ac
f96e0b
+++ b/configure.ac
f96e0b
@@ -464,7 +464,9 @@ if test "x$target_cpu" = xi386; then
f96e0b
   else
f96e0b
     TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
f96e0b
   fi
f96e0b
+fi
f96e0b
 
f96e0b
+if test "x$target_cpu" = xi386 || test "x$target_cpu" = xx86_64; then
f96e0b
   # Some toolchains enable these features by default, but they need
f96e0b
   # registers that aren't set up properly in GRUB.
f96e0b
   TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b