Module Name: src
Committed By: martin
Date: Wed Sep 18 09:25:20 UTC 2013
Modified Files:
src/share/mk: bsd.kmodule.mk
Log Message:
When compiling kernel modules on sparc64 force the same memory model as
we force for the kernel (i.e. do not rely on compiler defaults here)
To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/share/mk/bsd.kmodule.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/mk/bsd.kmodule.mk
diff -u src/share/mk/bsd.kmodule.mk:1.39 src/share/mk/bsd.kmodule.mk:1.40
--- src/share/mk/bsd.kmodule.mk:1.39 Wed Aug 7 17:36:11 2013
+++ src/share/mk/bsd.kmodule.mk Wed Sep 18 09:25:20 2013
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.kmodule.mk,v 1.39 2013/08/07 17:36:11 matt Exp $
+# $NetBSD: bsd.kmodule.mk,v 1.40 2013/09/18 09:25:20 martin Exp $
# We are not building this with PIE
MKPIE=no
@@ -36,6 +36,11 @@ CFLAGS+= -mlongcall
CFLAGS+= -fno-pic
.endif
+.if ${MACHINE} == "sparc64"
+# force same memory model as rest of the kernel
+CFLAGS+= -mcmodel=medlow
+.endif
+
# evbppc needs some special help
.if ${MACHINE} == "evbppc"