Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk When compiling kernel modules on sparc64 force the ...



details:   https://anonhg.NetBSD.org/src/rev/e91cfab5e9c8
branches:  trunk
changeset: 790090:e91cfab5e9c8
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Sep 18 09:25:20 2013 +0000

description:
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)

diffstat:

 share/mk/bsd.kmodule.mk |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 84cdb8ef7be5 -r e91cfab5e9c8 share/mk/bsd.kmodule.mk
--- a/share/mk/bsd.kmodule.mk   Tue Sep 17 23:55:16 2013 +0000
+++ b/share/mk/bsd.kmodule.mk   Wed Sep 18 09:25:20 2013 +0000
@@ -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+=       -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"
 



Home | Main Index | Thread Index | Old Index