Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Remove kerndebug.h from non-Shark code (it's a Shar...



details:   https://anonhg.NetBSD.org/src/rev/0f7086ffff28
branches:  trunk
changeset: 517990:0f7086ffff28
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Nov 22 19:19:48 2001 +0000

description:
Remove kerndebug.h from non-Shark code (it's a Shark-specific header
file, and probably should be done away with anyway).

diffstat:

 sys/arch/acorn32/include/kerndebug.h   |  132 ---------------------------------
 sys/arch/cats/include/Makefile         |    3 +-
 sys/arch/cats/include/kerndebug.h      |  132 ---------------------------------
 sys/arch/evbarm/include/Makefile       |    3 +-
 sys/arch/evbarm/include/kerndebug.h    |  132 ---------------------------------
 sys/arch/netwinder/include/Makefile    |    3 +-
 sys/arch/netwinder/include/kerndebug.h |  132 ---------------------------------
 7 files changed, 3 insertions(+), 534 deletions(-)

diffs (truncated from 595 to 300 lines):

diff -r 4c50c7193b08 -r 0f7086ffff28 sys/arch/acorn32/include/kerndebug.h
--- a/sys/arch/acorn32/include/kerndebug.h      Thu Nov 22 19:09:42 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,132 +0,0 @@
-/*     $NetBSD: kerndebug.h,v 1.1 2001/10/05 22:27:51 reinoud Exp $    */
-
-/*
- * Copyright 1997
- * Digital Equipment Corporation. All rights reserved.
- *
- * This software is furnished under license and may be used and
- * copied only in accordance with the following terms and conditions.
- * Subject to these conditions, you may download, copy, install,
- * use, modify and distribute this software in source and/or binary
- * form. No title or ownership is transferred hereby.
- *
- * 1) Any source code used, modified or distributed must reproduce
- *    and retain this copyright notice and list of conditions as
- *    they appear in the source file.
- *
- * 2) No right is granted to use any trade name, trademark, or logo of
- *    Digital Equipment Corporation. Neither the "Digital Equipment
- *    Corporation" name nor any trademark or logo of Digital Equipment
- *    Corporation may be used to endorse or promote products derived
- *    from this software without the prior written permission of
- *    Digital Equipment Corporation.
- *
- * 3) This software is provided "AS-IS" and any express or implied
- *    warranties, including but not limited to, any implied warranties
- *    of merchantability, fitness for a particular purpose, or
- *    non-infringement are disclaimed. In no event shall DIGITAL be
- *    liable for any damages whatsoever, and in particular, DIGITAL
- *    shall not be liable for special, indirect, consequential, or
- *    incidental damages or damages for lost profits, loss of
- *    revenue or loss of use, whether such damages arise in contract,
- *    negligence, tort, under statute, in equity, at law or otherwise,
- *    even if advised of the possibility of such damage.
- */
-
-/*
-**++
-**  FACILITY:
-**
-**     kerndebug.h
-**     
-**
-**  ABSTRACT:
-**
-**      This  header provides generic debugging capabilities using printf.
-**      All debugging can be compiled out by not defining the
-**      KERNEL_DEBUG macro. In addition the amount of debug output is 
-**      defined by individual variables controlled by each subsystem 
-**      using this utility. Finally note that the two middle bytes of
-**      the kern debug flags (bits 16 to 23) are free for individual 
-**      subsystems to use as they please (eg. define switches for 
-**      individual functions etc). 
-**     
-**  AUTHORS:
-**
-**      John Court
-**
-**  CREATION DATE:      2-Feb-1992
-**
-**  MODIFICATION HISTORY:
-**
-**--
-*/
-#ifndef _KERNDEBUG_H_
-#define _KERNDEBUG_H_
-
-#define KERN_DEBUG_INFO                0x00000001
-#define KERN_DEBUG_WARNING      0x00000002
-#define KERN_DEBUG_ERROR        0x00000010
-#define KERN_DEBUG_SMP          0x00000020
-#define KERN_DEBUG_PANIC       0x40000000
-#define KERN_REAL_PANIC                0x80000000
-#define KERN_DEBUG_ALL          KERN_DEBUG_INFO | KERN_DEBUG_WARNING | \
-                               KERN_DEBUG_ERROR | KERN_DEBUG_PANIC
-/*
-** Define the type for debugging flag subsystem variables
-*/
-typedef unsigned int Kern_Debug_Flags;
-/*
-** Set up source line location macro for extra debugging and panics
-*/
-#ifdef  __FILE__ 
-#define KERN_DEBUG_LOC ":%s:%d:=\n\t",__FILE__,__LINE__  
-#else 
-#define KERN_DEBUG_LOC ":__FILE__ not supported :=\n\t" 
-#endif
-
-/*
-** This is real nasty in that it requires several printf's but is 
-** unavoidable due to the differences between 
-** preprocessors supporting standard ANSI C and others.
-** 
-** NOTE: The format of calls to this macro must be 
-**
-**       KERN_DEBUG((Kern_Debug_Flags)CntrlVar, KERN_DEBUG_xxxx, 
-**                  (normal printf arguments));
-**     
-**       pay special attention to the extra set of () around the 
-**       final arguement.
-**
-*/
-#ifdef KERNEL_DEBUG
-#define KERN_DEBUG(CntrlVar,Level,Output) \
-{ \
-       if ( (CntrlVar) & (Level) ) \
-       { \
-               if ( (CntrlVar) & (Level) & KERN_DEBUG_PANIC ) \
-               { \
-                     printf ("KERNEL:DEBUG PANIC"); \
-                     printf (KERN_DEBUG_LOC); \
-                     printf Output; \
-                     panic("KERN_DEBUG Panicing"); \
-               } \
-               else \
-               { \
-                     printf Output; \
-               } \
-       } \
-}
-#else  /* else KERNEL_DEBUG not defined */
-#define KERN_DEBUG(CntrlVar,Level,Output) 
-#endif /* end else KERNEL_DEBUG not defined */
-
-#endif /* _KERNDEBUG_H_ */
-
-
-
-
-
-
-
-
diff -r 4c50c7193b08 -r 0f7086ffff28 sys/arch/cats/include/Makefile
--- a/sys/arch/cats/include/Makefile    Thu Nov 22 19:09:42 2001 +0000
+++ b/sys/arch/cats/include/Makefile    Thu Nov 22 19:19:48 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.8 2001/11/22 18:34:35 thorpej Exp $
+#      $NetBSD: Makefile,v 1.9 2001/11/22 19:19:49 thorpej Exp $
 
 KDIR=  /sys/arch/cats/include
 INCSDIR= /usr/include/arm/cats
@@ -7,7 +7,6 @@
        frame.h \
        intr.h irqhandler.h \
        joystick.h \
-       kerndebug.h \
        param.h pci_machdep.h pmap.h psl.h \
        rtc.h \
        types.h \
diff -r 4c50c7193b08 -r 0f7086ffff28 sys/arch/cats/include/kerndebug.h
--- a/sys/arch/cats/include/kerndebug.h Thu Nov 22 19:09:42 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,132 +0,0 @@
-/*     $NetBSD: kerndebug.h,v 1.1 2001/06/08 22:23:01 chris Exp $      */
-
-/*
- * Copyright 1997
- * Digital Equipment Corporation. All rights reserved.
- *
- * This software is furnished under license and may be used and
- * copied only in accordance with the following terms and conditions.
- * Subject to these conditions, you may download, copy, install,
- * use, modify and distribute this software in source and/or binary
- * form. No title or ownership is transferred hereby.
- *
- * 1) Any source code used, modified or distributed must reproduce
- *    and retain this copyright notice and list of conditions as
- *    they appear in the source file.
- *
- * 2) No right is granted to use any trade name, trademark, or logo of
- *    Digital Equipment Corporation. Neither the "Digital Equipment
- *    Corporation" name nor any trademark or logo of Digital Equipment
- *    Corporation may be used to endorse or promote products derived
- *    from this software without the prior written permission of
- *    Digital Equipment Corporation.
- *
- * 3) This software is provided "AS-IS" and any express or implied
- *    warranties, including but not limited to, any implied warranties
- *    of merchantability, fitness for a particular purpose, or
- *    non-infringement are disclaimed. In no event shall DIGITAL be
- *    liable for any damages whatsoever, and in particular, DIGITAL
- *    shall not be liable for special, indirect, consequential, or
- *    incidental damages or damages for lost profits, loss of
- *    revenue or loss of use, whether such damages arise in contract,
- *    negligence, tort, under statute, in equity, at law or otherwise,
- *    even if advised of the possibility of such damage.
- */
-
-/*
-**++
-**  FACILITY:
-**
-**     kerndebug.h
-**     
-**
-**  ABSTRACT:
-**
-**      This  header provides generic debugging capabilities using printf.
-**      All debugging can be compiled out by not defining the
-**      KERNEL_DEBUG macro. In addition the amount of debug output is 
-**      defined by individual variables controlled by each subsystem 
-**      using this utility. Finally note that the two middle bytes of
-**      the kern debug flags (bits 16 to 23) are free for individual 
-**      subsystems to use as they please (eg. define switches for 
-**      individual functions etc). 
-**     
-**  AUTHORS:
-**
-**      John Court
-**
-**  CREATION DATE:      2-Feb-1992
-**
-**  MODIFICATION HISTORY:
-**
-**--
-*/
-#ifndef _KERNDEBUG_H_
-#define _KERNDEBUG_H_
-
-#define KERN_DEBUG_INFO                0x00000001
-#define KERN_DEBUG_WARNING      0x00000002
-#define KERN_DEBUG_ERROR        0x00000010
-#define KERN_DEBUG_SMP          0x00000020
-#define KERN_DEBUG_PANIC       0x40000000
-#define KERN_REAL_PANIC                0x80000000
-#define KERN_DEBUG_ALL          KERN_DEBUG_INFO | KERN_DEBUG_WARNING | \
-                               KERN_DEBUG_ERROR | KERN_DEBUG_PANIC
-/*
-** Define the type for debugging flag subsystem variables
-*/
-typedef unsigned int Kern_Debug_Flags;
-/*
-** Set up source line location macro for extra debugging and panics
-*/
-#ifdef  __FILE__ 
-#define KERN_DEBUG_LOC ":%s:%d:=\n\t",__FILE__,__LINE__  
-#else 
-#define KERN_DEBUG_LOC ":__FILE__ not supported :=\n\t" 
-#endif
-
-/*
-** This is real nasty in that it requires several printf's but is 
-** unavoidable due to the differences between 
-** preprocessors supporting standard ANSI C and others.
-** 
-** NOTE: The format of calls to this macro must be 
-**
-**       KERN_DEBUG((Kern_Debug_Flags)CntrlVar, KERN_DEBUG_xxxx, 
-**                  (normal printf arguments));
-**     
-**       pay special attention to the extra set of () around the 
-**       final arguement.
-**
-*/
-#ifdef KERNEL_DEBUG
-#define KERN_DEBUG(CntrlVar,Level,Output) \
-{ \
-       if ( (CntrlVar) & (Level) ) \
-       { \
-               if ( (CntrlVar) & (Level) & KERN_DEBUG_PANIC ) \
-               { \
-                     printf ("KERNEL:DEBUG PANIC"); \
-                     printf (KERN_DEBUG_LOC); \
-                     printf Output; \
-                     panic("KERN_DEBUG Panicing"); \
-               } \
-               else \
-               { \
-                     printf Output; \
-               } \
-       } \
-}
-#else  /* else KERNEL_DEBUG not defined */
-#define KERN_DEBUG(CntrlVar,Level,Output) 
-#endif /* end else KERNEL_DEBUG not defined */
-
-#endif /* _KERNDEBUG_H_ */
-
-
-
-
-
-
-
-
diff -r 4c50c7193b08 -r 0f7086ffff28 sys/arch/evbarm/include/Makefile
--- a/sys/arch/evbarm/include/Makefile  Thu Nov 22 19:09:42 2001 +0000
+++ b/sys/arch/evbarm/include/Makefile  Thu Nov 22 19:19:48 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.3 2001/11/22 18:40:12 thorpej Exp $
+#      $NetBSD: Makefile,v 1.4 2001/11/22 19:19:50 thorpej Exp $
 
 KDIR=  /sys/arch/evbarm/include
 INCSDIR= /usr/include/arm/evbarm
@@ -7,7 +7,6 @@
        frame.h \



Home | Main Index | Thread Index | Old Index