diff options
-rw-r--r-- | sys/arch/sparc64/dev/schizo.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/arch/sparc64/dev/schizo.c b/sys/arch/sparc64/dev/schizo.c index 9e3de1943fc..44621f43faf 100644 --- a/sys/arch/sparc64/dev/schizo.c +++ b/sys/arch/sparc64/dev/schizo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: schizo.c,v 1.45 2007/01/26 16:53:29 tsi Exp $ */ +/* $OpenBSD: schizo.c,v 1.46 2007/02/23 21:52:01 kettenis Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -236,13 +236,6 @@ schizo_init(struct schizo_softc *sc, int busa) schizo_cfg_write(pbm, PCI_COMMAND_STATUS_REG, schizo_cfg_read(pbm, PCI_COMMAND_STATUS_REG)); - if (busa) - schizo_set_intr(sc, pbm, PIL_HIGH, schizo_pci_error, - pbm, SCZ_PCIERR_A_INO, "pci_a"); - else - schizo_set_intr(sc, pbm, PIL_HIGH, schizo_pci_error, - pbm, SCZ_PCIERR_B_INO, "pci_b"); - reg = schizo_pbm_read(pbm, SCZ_PCI_CTRL); /* enable/disable error interrupts and arbiter */ reg |= SCZ_PCICTRL_EEN | SCZ_PCICTRL_MMU_INT | SCZ_PCICTRL_ARB; @@ -254,6 +247,13 @@ schizo_init(struct schizo_softc *sc, int busa) SCZ_PCIDIAG_D_INTSYNC); schizo_pbm_write(pbm, SCZ_PCI_DIAG, reg); + if (busa) + schizo_set_intr(sc, pbm, PIL_HIGH, schizo_pci_error, + pbm, SCZ_PCIERR_A_INO, "pci_a"); + else + schizo_set_intr(sc, pbm, PIL_HIGH, schizo_pci_error, + pbm, SCZ_PCIERR_B_INO, "pci_b"); + /* double mapped */ schizo_set_intr(sc, pbm, PIL_HIGH, schizo_ue, sc, SCZ_UE_INO, "ue"); |