From 99b922fe751cf92f0f69b7b36f9f972376a662bc Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Wed, 31 May 2006 21:28:09 +0000 Subject: byteswap the ioc_status field so we can respond to scsi things properly on bigendian archs. this lets ses attach now. --- sys/dev/ic/mpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/ic') diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c index fd06e317cf4..3923e9c797b 100644 --- a/sys/dev/ic/mpi.c +++ b/sys/dev/ic/mpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpi.c,v 1.20 2006/05/31 06:17:00 dlg Exp $ */ +/* $OpenBSD: mpi.c,v 1.21 2006/05/31 21:28:08 dlg Exp $ */ /* * Copyright (c) 2005, 2006 David Gwynne @@ -701,7 +701,7 @@ mpi_scsi_cmd_done(struct mpi_ccb *ccb) #endif /* MPI_DEBUG */ xs->status = sie->scsi_status; - switch (sie->ioc_status) { + switch (letoh16(sie->ioc_status)) { case MPI_IOCSTATUS_SCSI_DATA_OVERRUN: xs->error = XS_DRIVER_STUFFUP; break; -- cgit v1.2.3