Add a global patchable variable to enable debugging printfs in the

code that finds the boot device.
This commit is contained in:
thorpej 2000-06-01 17:12:38 +00:00
parent c6ddc6009b
commit 79744e1563
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.209 2000/06/01 03:41:23 thorpej Exp $ */ /* $NetBSD: machdep.c,v 1.210 2000/06/01 17:12:38 thorpej Exp $ */
/*- /*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc. * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@ -79,7 +79,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ #include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.209 2000/06/01 03:41:23 thorpej Exp $"); __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.210 2000/06/01 17:12:38 thorpej Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@ -203,6 +203,8 @@ int unknownmem; /* amount of memory with an unknown use */
int cputype; /* system type, from the RPB */ int cputype; /* system type, from the RPB */
int bootdev_debug = 0; /* patchable, or from DDB */
/* /*
* XXX We need an address to which we can assign things so that they * XXX We need an address to which we can assign things so that they
* won't be optimized away because we didn't use the value. * won't be optimized away because we didn't use the value.

View File

@ -1,4 +1,4 @@
/* $NetBSD: alpha.h,v 1.8 2000/04/10 06:04:28 simonb Exp $ */ /* $NetBSD: alpha.h,v 1.9 2000/06/01 17:12:42 thorpej Exp $ */
/* /*
* Copyright (c) 1988 University of Utah. * Copyright (c) 1988 University of Utah.
@ -54,6 +54,8 @@ struct reg;
struct rpb; struct rpb;
struct trapframe; struct trapframe;
extern int bootdev_debug;
void XentArith __P((u_int64_t, u_int64_t, u_int64_t)); /* MAGIC */ void XentArith __P((u_int64_t, u_int64_t, u_int64_t)); /* MAGIC */
void XentIF __P((u_int64_t, u_int64_t, u_int64_t)); /* MAGIC */ void XentIF __P((u_int64_t, u_int64_t, u_int64_t)); /* MAGIC */
void XentInt __P((u_int64_t, u_int64_t, u_int64_t)); /* MAGIC */ void XentInt __P((u_int64_t, u_int64_t, u_int64_t)); /* MAGIC */