Source-Changes-HG archive

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

[src/trunk]: src/sys/sys apply more _KERNEL and fix the amd64 (and probably m...



details:   https://anonhg.NetBSD.org/src/rev/0539e63f7d21
branches:  trunk
changeset: 944246:0539e63f7d21
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Sep 24 09:37:07 2020 +0000

description:
apply more _KERNEL and fix the amd64 (and probably more) build.

diffstat:

 sys/sys/ksyms.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r d552398f854e -r 0539e63f7d21 sys/sys/ksyms.h
--- a/sys/sys/ksyms.h   Thu Sep 24 09:04:38 2020 +0000
+++ b/sys/sys/ksyms.h   Thu Sep 24 09:37:07 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ksyms.h,v 1.38 2020/09/23 09:52:02 simonb Exp $        */
+/*     $NetBSD: ksyms.h,v 1.39 2020/09/24 09:37:07 mrg Exp $   */
 
 /*
  * Copyright (c) 2001, 2003 Anders Magnusson (ragge%ludd.luth.se@localhost).
@@ -126,6 +126,8 @@
 #define KSYMS_PROC     0100    /* Procedures only */
 #define KSYMS_ANY      0200    /* Also local symbols (DDB use only) */
 
+#if defined(_KERNEL)
+
 typedef int (*ksyms_callback_t)(const char *, int, void *,
        uint32_t, int, void *);
 
@@ -150,4 +152,5 @@
 void ksyms_modunload(const char *);
 
 #endif /* _KERNEL */
+#endif /* _KERNEL || _KMEMUSER */
 #endif /* _SYS_KSYMS_H_ */



Home | Main Index | Thread Index | Old Index