Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/grub/0.97: 908_all_grub-0.97-no-sse.patch ChangeLog
Date: Wed, 30 May 2012 23:00:03
Message-Id: 20120530225953.A926020047@flycatcher.gentoo.org
1 vapier 12/05/30 22:59:53
2
3 Modified: ChangeLog
4 Added: 908_all_grub-0.97-no-sse.patch
5 Log:
6 Disable use of extended insn sets (like SSE) in early boot code #360513#115 by Bartosz Brachaczek.
7
8 Revision Changes Path
9 1.15 src/patchsets/grub/0.97/ChangeLog
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/grub/0.97/ChangeLog?rev=1.15&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/grub/0.97/ChangeLog?rev=1.15&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/grub/0.97/ChangeLog?r1=1.14&r2=1.15
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo/src/patchsets/grub/0.97/ChangeLog,v
18 retrieving revision 1.14
19 retrieving revision 1.15
20 diff -u -r1.14 -r1.15
21 --- ChangeLog 30 May 2012 22:58:06 -0000 1.14
22 +++ ChangeLog 30 May 2012 22:59:53 -0000 1.15
23 @@ -1,6 +1,11 @@
24 # ChangeLog for grub patchset
25 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo/src/patchsets/grub/0.97/ChangeLog,v 1.14 2012/05/30 22:58:06 vapier Exp $
27 +# $Header: /var/cvsroot/gentoo/src/patchsets/grub/0.97/ChangeLog,v 1.15 2012/05/30 22:59:53 vapier Exp $
28 +
29 + 30 May 2012; Mike Frysinger <vapier@g.o>
30 + +908_all_grub-0.97-no-sse.patch:
31 + Disable use of extended insn sets (like SSE) in early boot code #360513#115
32 + by Bartosz Brachaczek.
33
34 30 May 2012; Mike Frysinger <vapier@g.o>
35 -400_all_grub-0.97-reiser4-20050808-gentoo.patch,
36
37
38
39 1.1 src/patchsets/grub/0.97/908_all_grub-0.97-no-sse.patch
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/grub/0.97/908_all_grub-0.97-no-sse.patch?rev=1.1&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/grub/0.97/908_all_grub-0.97-no-sse.patch?rev=1.1&content-type=text/plain
43
44 Index: 908_all_grub-0.97-no-sse.patch
45 ===================================================================
46 if we let the user's CFLAGS or default settings take effect, we might end up
47 generating code that uses SSE. but that doesn't work in real mode, so compile
48 with -march set to the target tuple's cpu to avoid that, and any other ISA
49 extensions in the early boot code.
50
51 http://wiki.osdev.org/SSE#Adding_support
52
53 https://bugs.gentoo.org/360513
54
55 --- a/configure.ac
56 +++ b/configure.ac
57 @@ -20,8 +20,12 @@
58 AC_CANONICAL_HOST
59
60 case "$host_cpu" in
61 -i[[3456]]86) host_cpu=i386 ;;
62 -x86_64) host_cpu=x86_64 ;;
63 +i[[3456]]86)
64 + STAGE_MARCH="-march=$host_cpu"
65 + host_cpu=i386 ;;
66 +x86_64)
67 + STAGE_MARCH="-march=i686"
68 + host_cpu=x86_64 ;;
69 *) AC_MSG_ERROR([unsupported CPU type]) ;;
70 esac
71
72 @@ -124,8 +127,8 @@
73 fi
74 fi
75
76 -STAGE1_CFLAGS="$STAGE1_CFLAGS -fno-strict-aliasing"
77 -STAGE2_CFLAGS="$STAGE2_CFLAGS -fno-strict-aliasing"
78 +STAGE1_CFLAGS="$STAGE1_CFLAGS -fno-strict-aliasing $STAGE_MARCH"
79 +STAGE2_CFLAGS="$STAGE2_CFLAGS -fno-strict-aliasing $STAGE_MARCH"
80 GRUB_CFLAGS="$GRUB_CFLAGS -fno-strict-aliasing"
81 AC_SUBST(STAGE1_CFLAGS)
82 AC_SUBST(STAGE2_CFLAGS)