Module Name:    src
Committed By:   matt
Date:           Wed Jul  8 14:53:07 UTC 2015

Modified Files:
        src/sys/arch/mips/mips: genassym.cf

Log Message:
Add ifndef _MODULE around VM parameters.


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/sys/arch/mips/mips/genassym.cf

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/mips/genassym.cf
diff -u src/sys/arch/mips/mips/genassym.cf:1.61 src/sys/arch/mips/mips/genassym.cf:1.62
--- src/sys/arch/mips/mips/genassym.cf:1.61	Thu Jun 11 15:50:17 2015
+++ src/sys/arch/mips/mips/genassym.cf	Wed Jul  8 14:53:07 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: genassym.cf,v 1.61 2015/06/11 15:50:17 matt Exp $
+#	$NetBSD: genassym.cf,v 1.62 2015/07/08 14:53:07 matt Exp $
 #
 # Copyright (c) 1992, 1993
 #	The Regents of the University of California.  All rights reserved.
@@ -91,11 +91,17 @@ include <mips/vmparam.h>
 include <mips/pte.h>
 include <mips/locore.h>
 
+define	SIGFPE		 	SIGFPE
+define	SIGILL		 	SIGILL
+define	SIGSEGV			SIGSEGV
+
+ifndef _MODULE
 define	PAGE_SIZE		PAGE_SIZE
 define	PGSHIFT			PGSHIFT
 define	NBPG			NBPG
 define	USPACE			USPACE
 define	UPAGES			UPAGES
+#endif
 
 ifdef __HAVE_FAST_SOFTINTS
 define	__HAVE_FAST_SOFTINTS	1
@@ -140,13 +146,10 @@ define	VM_MAX_KERNEL_ADDRESS	VM_MAX_KERN
 
 define	CI_NINTR		offsetof(struct cpu_info, ci_data.cpu_nintr)
 
-define	SIGFPE		 	SIGFPE
-define	SIGILL		 	SIGILL
-define	SIGSEGV			SIGSEGV
-
 #				/* XXX */
 define	MIPSX_FLUSHICACHE	0
 
+ifndef _MODULE
 define	PG_ASID			PG_ASID
 define	MIPS1_PG_G		MIPS1_PG_G
 define	MIPS1_PG_V		MIPS1_PG_V
@@ -155,6 +158,7 @@ define	MIPS3_PG_V		MIPS3_PG_V
 define	MIPS3_PG_HVPN		MIPS3_PG_HVPN
 define	MIPS3_PG_ASID		MIPS3_PG_ASID
 define	MIPS3_PG_ODDPG		MIPS3_PG_ODDPG
+endif
 
 define	TF_SIZ			sizeof(struct trapframe)
 define	TF_REG_ZERO		offsetof(struct trapframe, tf_regs[_R_ZERO])

Reply via email to