Fri Jun 10 03:17:35 2011 UTC ()
Explicitly disable use of SSE. LLVM generates SSE by default on AMD64
and we certainly don't want that in the kernel.


(joerg)
diff -r1.35 -r1.36 src/sys/arch/amd64/conf/Makefile.amd64

cvs diff -r1.35 -r1.36 src/sys/arch/amd64/conf/Makefile.amd64 (expand / switch to unified diff)

--- src/sys/arch/amd64/conf/Makefile.amd64 2011/05/30 15:06:32 1.35
+++ src/sys/arch/amd64/conf/Makefile.amd64 2011/06/10 03:17:35 1.36
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile.amd64,v 1.35 2011/05/30 15:06:32 joerg Exp $ 1# $NetBSD: Makefile.amd64,v 1.36 2011/06/10 03:17:35 joerg Exp $
2 2
3# Makefile for NetBSD 3# Makefile for NetBSD
4# 4#
5# This makefile is constructed from a machine description: 5# This makefile is constructed from a machine description:
6# config machineid 6# config machineid
7# Most changes should be made in the machine description 7# Most changes should be made in the machine description
8# /sys/arch/amd64/conf/``machineid'' 8# /sys/arch/amd64/conf/``machineid''
9# after which you should do 9# after which you should do
10# config machineid 10# config machineid
11# Machine generic makefile changes should be made in 11# Machine generic makefile changes should be made in
12# /sys/arch/amd64/conf/Makefile.amd64 12# /sys/arch/amd64/conf/Makefile.amd64
13# after which config should be rerun for all machines of that type. 13# after which config should be rerun for all machines of that type.
14# 14#
@@ -26,27 +26,27 @@ USE_SSP?= yes @@ -26,27 +26,27 @@ USE_SSP?= yes
26 26
27## 27##
28## (1) port identification 28## (1) port identification
29## 29##
30AMD64= $S/arch/amd64 30AMD64= $S/arch/amd64
31GENASSYM_CONF= ${AMD64}/amd64/genassym.cf 31GENASSYM_CONF= ${AMD64}/amd64/genassym.cf
32 32
33## 33##
34## (2) compile settings 34## (2) compile settings
35## 35##
36DEFCOPTS= -O2 36DEFCOPTS= -O2
37CPPFLAGS+= -Damd64 -Dx86_64 37CPPFLAGS+= -Damd64 -Dx86_64
38CFLAGS+= -mcmodel=kernel 38CFLAGS+= -mcmodel=kernel
39CFLAGS+= -mno-red-zone 39CFLAGS+= -mno-red-zone -mno-sse -mno-sse2 -mno-sse3
40 40
41## 41##
42## (3) libkern and compat 42## (3) libkern and compat
43## 43##
44KERN_AS= obj 44KERN_AS= obj
45 45
46## 46##
47## (4) local objects, compile rules, and dependencies 47## (4) local objects, compile rules, and dependencies
48## 48##
49MD_OBJS= locore.o vector.o copy.o spl.o 49MD_OBJS= locore.o vector.o copy.o spl.o
50MD_CFILES= 50MD_CFILES=
51MD_SFILES= ${AMD64}/amd64/locore.S ${AMD64}/amd64/vector.S \ 51MD_SFILES= ${AMD64}/amd64/locore.S ${AMD64}/amd64/vector.S \
52 ${AMD64}/amd64/copy.S ${AMD64}/amd64/spl.S 52 ${AMD64}/amd64/copy.S ${AMD64}/amd64/spl.S