Port-alpha archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Self baked kernel panics
Here's untested patch (against netbsd-4 branch).
--- src/sys/dev/ic/isp.c.orig Thu Nov 16 10:32:51 2006
+++ src/sys/dev/ic/isp.c Sat Feb 9 15:07:16 2008
@@ -2957,7 +2957,10 @@ isp_start(XS_T *xs)
{
struct ispsoftc *isp;
u_int16_t nxti, optr, handle;
- u_int8_t local[QENTRY_LEN];
+ union {
+ u_int8_t reqlen[QENTRY_LEN];
+ ispreq_t req;
+ } local;
ispreq_t *reqp, *qep;
int target, i;
@@ -3201,7 +3204,7 @@ isp_start(XS_T *xs)
* We do dual duty here (cough) for synchronizing for busses other
* than which we got here to send a command to.
*/
- reqp = (ispreq_t *) local;
+ reqp = &local.req;
if (isp->isp_sendmarker) {
u_int8_t n = (IS_DUALBUS(isp)? 2: 1);
/*
--
ITOH Yasufumi
Home |
Main Index |
Thread Index |
Old Index