Martti Kuparinen wrote:
Shouldn't we have this in netbsd-5 and netbsd-5-0?
Maybe something like this in src/sys/lkm/Makefile.inc ?
--- Makefile.inc.orig 2009-11-13 11:17:31.000000000 +0200
+++ Makefile.inc 2009-11-13 11:18:28.000000000 +0200
@@ -8,6 +8,11 @@
.include <bsd.own.mk>
+# Make kernel modules work on amd64
+.if ${MACHINE_ARCH} == "x86_64"
+CPPFLAGS+=-mno-red-zone
+.endif
+
CPPFLAGS+=-I${NETBSDSRCDIR}/common/include
USE_FORT = no