From owner-p4-projects@FreeBSD.ORG Wed Oct 18 20:27:13 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 30E6116A4A0; Wed, 18 Oct 2006 20:27:13 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0ED2216A494 for ; Wed, 18 Oct 2006 20:27:13 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6DD643D5C for ; Wed, 18 Oct 2006 20:27:09 +0000 (GMT) (envelope-from mjacob@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k9IKR89i000415 for ; Wed, 18 Oct 2006 20:27:08 GMT (envelope-from mjacob@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k9IKR8lM000412 for perforce@freebsd.org; Wed, 18 Oct 2006 20:27:08 GMT (envelope-from mjacob@freebsd.org) Date: Wed, 18 Oct 2006 20:27:08 GMT Message-Id: <200610182027.k9IKR8lM000412@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to mjacob@freebsd.org using -f From: Matt Jacob To: Perforce Change Reviews Cc: Subject: PERFORCE change 108065 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Oct 2006 20:27:13 -0000 http://perforce.freebsd.org/chv.cgi?CH=108065 Change 108065 by mjacob@newisp on 2006/10/18 20:26:36 ISR reads should have the semaphore and mailbox pointers as pointers to 16 bit quantities- not 32 bit quantities. Affected files ... .. //depot/projects/newisp/dev/isp/isp_freebsd.c#13 edit Differences ... ==== //depot/projects/newisp/dev/isp/isp_freebsd.c#13 (text+ko) ==== @@ -2008,7 +2008,8 @@ isp_poll(struct cam_sim *sim) { ispsoftc_t *isp = cam_sim_softc(sim); - uint32_t isr, sema, mbox; + uint32_t isr; + uint16_t sema, mbox; ISP_LOCK(isp); if (ISP_READ_ISR(isp, &isr, &sema, &mbox)) { @@ -2036,7 +2037,8 @@ isp->isp_osinfo.intsok = 0; handle = isp_find_handle(isp, xs); if (handle) { - uint32_t isr, sema, mbox; + uint32_t isr; + uint16_t sema, mbox; if (XS_CMD_DONE_P(xs)) { isp_prt(isp, ISP_LOGDEBUG1, @@ -2352,7 +2354,8 @@ break; } for (i = 0; isp->isp_osinfo.leact[seq] && i < 30 * 1000; i++) { - uint32_t isr, sema, mbox; + uint32_t isr; + uint16_t sema, mbox; if (ISP_READ_ISR(isp, &isr, &sema, &mbox)) { isp_intr(isp, isr, sema, mbox); }