Restore my changes to initialize the kdc_shutdown routine pointer. Stefan

clobbered it in his previous commit and not having it causes the machine
to panic during reboot (as well as not doing the important shutdown callout).
This commit is contained in:
David Greenman 1995-03-23 06:14:44 +00:00
parent 06b0ad8a6f
commit a54907a1a7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7265
2 changed files with 10 additions and 8 deletions

View File

@ -1,6 +1,6 @@
/**************************************************************************
**
** $Id: pci.c,v 1.19 1995/03/17 04:27:19 davidg Exp $
** $Id: pci.c,v 1.20 1995/03/21 23:01:01 se Exp $
**
** General subroutines for the PCI bus.
** pci_configure ()
@ -61,13 +61,13 @@
#include <vm/vm.h>
#include <vm/vm_param.h>
#include <machine/pmap.h>
#include <sys/devconf.h>
#include <pci/pcivar.h>
#include <pci/pcireg.h>
#include <pci/pcibus.h>
#include <machine/pmap.h>
#include <sys/devconf.h>
#define PCI_MAX_IRQ (16)
@ -560,6 +560,7 @@ pci_bus_config (void)
pdcp -> pdc_kdc.kdc_parentdata = &pdcp->pdc_pi;
pdcp -> pdc_kdc.kdc_state = DC_UNKNOWN;
pdcp -> pdc_kdc.kdc_description = name;
pdcp -> pdc_kdc.kdc_shutdown = dvp->pd_shutdown;
/*
** And register this device

View File

@ -1,6 +1,6 @@
/**************************************************************************
**
** $Id: pci.c,v 1.19 1995/03/17 04:27:19 davidg Exp $
** $Id: pci.c,v 1.20 1995/03/21 23:01:01 se Exp $
**
** General subroutines for the PCI bus.
** pci_configure ()
@ -61,13 +61,13 @@
#include <vm/vm.h>
#include <vm/vm_param.h>
#include <machine/pmap.h>
#include <sys/devconf.h>
#include <pci/pcivar.h>
#include <pci/pcireg.h>
#include <pci/pcibus.h>
#include <machine/pmap.h>
#include <sys/devconf.h>
#define PCI_MAX_IRQ (16)
@ -560,6 +560,7 @@ pci_bus_config (void)
pdcp -> pdc_kdc.kdc_parentdata = &pdcp->pdc_pi;
pdcp -> pdc_kdc.kdc_state = DC_UNKNOWN;
pdcp -> pdc_kdc.kdc_description = name;
pdcp -> pdc_kdc.kdc_shutdown = dvp->pd_shutdown;
/*
** And register this device