summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--share/mk/bsd.kern.mk10
-rw-r--r--sys/alpha/conf/Makefile.alpha4
-rw-r--r--sys/conf/Makefile.alpha4
-rw-r--r--sys/conf/kern.mk10
4 files changed, 22 insertions, 6 deletions
diff --git a/share/mk/bsd.kern.mk b/share/mk/bsd.kern.mk
index 7f423b8..40e18cf 100644
--- a/share/mk/bsd.kern.mk
+++ b/share/mk/bsd.kern.mk
@@ -1,4 +1,4 @@
-# $Id: bsd.kern.mk,v 1.10 1998/09/09 10:04:58 bde Exp $
+# $Id: bsd.kern.mk,v 1.11 1998/12/14 21:03:27 archie Exp $
#
# Warning flags for compiling the kernel and components of the kernel.
@@ -14,3 +14,11 @@ CWARNFLAGS?= -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \
# When working on removing warnings from code, the `-Werror' flag should be
# of material assistance.
#
+
+#
+# On the alpha, make sure that we don't use floating-point registers and
+# allow the use of EV56 instructions (only needed for low-level i/o).
+#
+.if ${MACHINE_ARCH} == "alpha"
+CFLAGS+= -mno-fp-regs -Wa,-mev56
+.endif
diff --git a/sys/alpha/conf/Makefile.alpha b/sys/alpha/conf/Makefile.alpha
index edcb52e..b505986 100644
--- a/sys/alpha/conf/Makefile.alpha
+++ b/sys/alpha/conf/Makefile.alpha
@@ -1,7 +1,7 @@
# Makefile.alpha -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.alpha 7.1 5/10/91
-# $Id: Makefile.alpha,v 1.13 1998/11/18 23:51:17 dima Exp $
+# $Id: Makefile.alpha,v 1.14 1998/12/07 22:36:53 imp Exp $
#
# Makefile for FreeBSD
#
@@ -42,7 +42,7 @@ INCLUDES+= -I$S/../include
INCLUDES+= -I/usr/include
.endif
COPTS= ${INCLUDES} ${IDENT} -DKERNEL -include opt_global.h
-CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} ${COPTS} -mno-fp-regs -Wa,-mev56
+CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} ${COPTS}
LOAD_ADDRESS?= 0xfffffc0000300000
DEFINED_PROF= ${PROF}
.if defined(PROF)
diff --git a/sys/conf/Makefile.alpha b/sys/conf/Makefile.alpha
index edcb52e..b505986 100644
--- a/sys/conf/Makefile.alpha
+++ b/sys/conf/Makefile.alpha
@@ -1,7 +1,7 @@
# Makefile.alpha -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.alpha 7.1 5/10/91
-# $Id: Makefile.alpha,v 1.13 1998/11/18 23:51:17 dima Exp $
+# $Id: Makefile.alpha,v 1.14 1998/12/07 22:36:53 imp Exp $
#
# Makefile for FreeBSD
#
@@ -42,7 +42,7 @@ INCLUDES+= -I$S/../include
INCLUDES+= -I/usr/include
.endif
COPTS= ${INCLUDES} ${IDENT} -DKERNEL -include opt_global.h
-CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} ${COPTS} -mno-fp-regs -Wa,-mev56
+CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} ${COPTS}
LOAD_ADDRESS?= 0xfffffc0000300000
DEFINED_PROF= ${PROF}
.if defined(PROF)
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index 7f423b8..40e18cf 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -1,4 +1,4 @@
-# $Id: bsd.kern.mk,v 1.10 1998/09/09 10:04:58 bde Exp $
+# $Id: bsd.kern.mk,v 1.11 1998/12/14 21:03:27 archie Exp $
#
# Warning flags for compiling the kernel and components of the kernel.
@@ -14,3 +14,11 @@ CWARNFLAGS?= -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \
# When working on removing warnings from code, the `-Werror' flag should be
# of material assistance.
#
+
+#
+# On the alpha, make sure that we don't use floating-point registers and
+# allow the use of EV56 instructions (only needed for low-level i/o).
+#
+.if ${MACHINE_ARCH} == "alpha"
+CFLAGS+= -mno-fp-regs -Wa,-mev56
+.endif
OpenPOWER on IntegriCloud