Whups- remember to zero the isr pointer arg.
This commit is contained in:
parent
9c76564553
commit
7187812d5e
@ -835,8 +835,10 @@ isp_pci_rd_isr_2300(struct ispsoftc *isp, u_int16_t *isrp,
|
|||||||
struct isp_pcisoftc *pcs = (struct isp_pcisoftc *) isp;
|
struct isp_pcisoftc *pcs = (struct isp_pcisoftc *) isp;
|
||||||
u_int32_t r2hisr;
|
u_int32_t r2hisr;
|
||||||
|
|
||||||
if ((BXR2(pcs, IspVirt2Off(isp, BIU_ISR) & BIU2100_ISR_RISC_INT)) == 0)
|
if (!(BXR2(pcs, IspVirt2Off(isp, BIU_ISR) & BIU2100_ISR_RISC_INT))) {
|
||||||
|
*isrp = 0;
|
||||||
return (0);
|
return (0);
|
||||||
|
}
|
||||||
r2hisr = bus_space_read_4(pcs->pci_st, pcs->pci_sh,
|
r2hisr = bus_space_read_4(pcs->pci_st, pcs->pci_sh,
|
||||||
IspVirt2Off(pcs, BIU_R2HSTSLO));
|
IspVirt2Off(pcs, BIU_R2HSTSLO));
|
||||||
isp_prt(isp, ISP_LOGDEBUG3, "RISC2HOST ISR 0x%x", r2hisr);
|
isp_prt(isp, ISP_LOGDEBUG3, "RISC2HOST ISR 0x%x", r2hisr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user