Module Name:    src
Committed By:   christos
Date:           Sat Jan 23 20:44:06 UTC 2016

Modified Files:
        src/sys/sys: systm.h

Log Message:
move more kernel stuff under #ifdef _KERNEL


To generate a diff of this commit:
cvs rdiff -u -r1.269 -r1.270 src/sys/sys/systm.h

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

Modified files:

Index: src/sys/sys/systm.h
diff -u src/sys/sys/systm.h:1.269 src/sys/sys/systm.h:1.270
--- src/sys/sys/systm.h:1.269	Wed Oct 28 20:27:08 2015
+++ src/sys/sys/systm.h	Sat Jan 23 15:44:06 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: systm.h,v 1.269 2015/10/29 00:27:08 mrg Exp $	*/
+/*	$NetBSD: systm.h,v 1.270 2016/01/23 20:44:06 christos Exp $	*/
 
 /*-
  * Copyright (c) 1982, 1988, 1991, 1993
@@ -114,6 +114,7 @@ extern struct vnode *swapdev_vp;/* vnode
 
 extern const dev_t zerodev;	/* /dev/zero */
 
+#if defined(_KERNEL)
 typedef int	sy_call_t(struct lwp *, const void *, register_t *);
 
 extern struct sysent {		/* system call table */
@@ -125,6 +126,8 @@ extern struct sysent {		/* system call t
 	uint32_t sy_return;	/* DTrace return ID for systrace. */
 } sysent[];
 extern int nsysent;
+#endif
+
 #if	BYTE_ORDER == BIG_ENDIAN
 #define	SCARG(p,k)	((p)->k.be.datum)	/* get arg from args pointer */
 #elif	BYTE_ORDER == LITTLE_ENDIAN
@@ -486,7 +489,6 @@ extern int db_fromconsole; /* XXX ddb/dd
 #else
 #define console_debugger() do {} while (/* CONSTCOND */ 0) /* NOP */
 #endif
-#endif /* _KERNEL */
 
 /* For SYSCALL_DEBUG */
 void scdebug_init(void);
@@ -498,7 +500,6 @@ void	_kernel_lock(int);
 void	_kernel_unlock(int, int *);
 bool	_kernel_locked_p(void);
 
-#ifdef _KERNEL
 void	kernconfig_lock_init(void);
 void	kernconfig_lock(void);
 void	kernconfig_unlock(void);
@@ -523,11 +524,13 @@ do {						\
 #define	KERNEL_UNLOCK_ALL(l, p)		KERNEL_UNLOCK(0, (l), (p))
 #define	KERNEL_UNLOCK_ONE(l)		KERNEL_UNLOCK(1, (l), NULL)
 
-/* Preemption control. */
 #ifdef _KERNEL
+/* Preemption control. */
 void	kpreempt_disable(void);
 void	kpreempt_enable(void);
 bool	kpreempt_disabled(void);
+
+vaddr_t calc_cache_size(vsize_t , int, int);
 #endif
 
 void assert_sleepable(void);
@@ -537,6 +540,5 @@ void assert_sleepable(void);
 #define	ASSERT_SLEEPABLE()	do {} while (0)
 #endif /* defined(DEBUG) */
 
-vaddr_t calc_cache_size(vsize_t , int, int);
 
 #endif	/* !_SYS_SYSTM_H_ */

Reply via email to