Added dump residual data routine.
This commit is contained in:
parent
228a27c192
commit
c79479ac8d
@ -1,4 +1,4 @@
|
||||
# $NetBSD: GENERIC,v 1.48 2002/04/25 15:06:36 atatat Exp $
|
||||
# $NetBSD: GENERIC,v 1.49 2002/05/02 14:36:42 nonaka Exp $
|
||||
#
|
||||
# GENERIC machine description file
|
||||
#
|
||||
@ -22,7 +22,7 @@ include "arch/prep/conf/std.prep"
|
||||
|
||||
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "GENERIC-$Revision: 1.48 $"
|
||||
#ident "GENERIC-$Revision: 1.49 $"
|
||||
|
||||
maxusers 32
|
||||
|
||||
@ -113,6 +113,7 @@ options PCIVERBOSE # verbose PCI device autoconfig messages
|
||||
options PCMCIAVERBOSE # verbose PCMCIA configuration messages
|
||||
options SCSIVERBOSE # human readable SCSI error messages
|
||||
#options USBVERBOSE # verbose USB device autoconfig messages
|
||||
#options RESIDUAL_DATA_DUMP # verbosely dump residual data
|
||||
|
||||
options NFS_BOOT_BOOTP
|
||||
options NFS_BOOT_BOOTPARAM
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: files.prep,v 1.30 2002/04/25 20:38:18 nonaka Exp $
|
||||
# $NetBSD: files.prep,v 1.31 2002/05/02 14:36:42 nonaka Exp $
|
||||
#
|
||||
# prep-specific configuration info
|
||||
#
|
||||
@ -6,6 +6,8 @@ maxpartitions 8
|
||||
|
||||
maxusers 2 8 64
|
||||
|
||||
defflag opt_residual.h RESIDUAL_DATA_DUMP
|
||||
|
||||
# IBM
|
||||
file arch/prep/prep/ibm_machdep.c
|
||||
file arch/prep/prep/ibm_6050.c
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mainbus.c,v 1.8 2002/02/24 13:19:09 kleink Exp $ */
|
||||
/* $NetBSD: mainbus.c,v 1.9 2002/05/02 14:36:43 nonaka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
|
||||
@ -30,6 +30,11 @@
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "opt_pci.h"
|
||||
#include "opt_residual.h"
|
||||
|
||||
#include "pci.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/extent.h>
|
||||
#include <sys/systm.h>
|
||||
@ -39,12 +44,11 @@
|
||||
#include <machine/autoconf.h>
|
||||
#include <machine/bus.h>
|
||||
|
||||
#include "pci.h"
|
||||
#include "opt_pci.h"
|
||||
#include <dev/pci/pcivar.h>
|
||||
#include <dev/pci/pciconf.h>
|
||||
|
||||
#include <machine/platform.h>
|
||||
#include <machine/residual.h>
|
||||
|
||||
int mainbus_match(struct device *, struct cfdata *, void *);
|
||||
void mainbus_attach(struct device *, struct device *, void *);
|
||||
@ -61,7 +65,7 @@ union mainbus_attach_args {
|
||||
};
|
||||
|
||||
/* There can be only one. */
|
||||
int mainbus_found;
|
||||
int mainbus_found = 0;
|
||||
|
||||
/*
|
||||
* Probe for the mainbus; always succeeds.
|
||||
@ -101,6 +105,10 @@ mainbus_attach(parent, self, aux)
|
||||
|
||||
printf("\n");
|
||||
|
||||
#if defined(RESIDUAL_DATA_DUMP)
|
||||
print_residual_device_info();
|
||||
#endif
|
||||
|
||||
ca.ca_name = "cpu";
|
||||
ca.ca_node = 0;
|
||||
config_found(self, &ca, mainbus_print);
|
||||
|
1119
sys/arch/prep/prep/residual.c
Normal file
1119
sys/arch/prep/prep/residual.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user