aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/isp/isp.c
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2006-09-01 04:18:17 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2006-09-01 04:18:17 +0000
commit54256b0109e767dca7317b9254375a3c0a118695 (patch)
treeaeff11de4cf694f26e237d4fbcc31a9d4461dfc1 /sys/dev/isp/isp.c
parentc88bc907e7ab61313efbdff18e55f1aec101d0dd (diff)
Notes
Diffstat (limited to 'sys/dev/isp/isp.c')
-rw-r--r--sys/dev/isp/isp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c
index da13a732e0cb2..b880a45dec301 100644
--- a/sys/dev/isp/isp.c
+++ b/sys/dev/isp/isp.c
@@ -665,9 +665,9 @@ again:
nxtaddr = ptr[3];
ptr = &ptr[nxtaddr];
- offset = ptr[5] | (((uint32_t)(ptr[4] & 0xff)) << 16);
+ offset = ptr[5] | (((uint32_t)(ptr[4] & 0x3f)) << 16);
isp->isp_mbxworkp = &ptr[1];
- isp->isp_mbxwrk0 = ptr[3] + 1;
+ isp->isp_mbxwrk0 = ptr[3] - 1;
isp->isp_mbxwrk1 = offset + 1;
isp->isp_mbxwrk8 = (offset + 1) >> 16;
MEMZERO(&mbs, sizeof (mbs));
@@ -684,7 +684,7 @@ again:
nxtaddr = ptr[3];
ptr = &ptr[nxtaddr];
- offset = ptr[5] | (((uint32_t)(ptr[4] & 0xff)) << 16);
+ offset = ptr[5] | (((uint32_t)(ptr[4] & 0x3f)) << 16);
isp->isp_mbxworkp = &ptr[1];
isp->isp_mbxwrk0 = ptr[3] - 1;
isp->isp_mbxwrk1 = (offset + 1);