From owner-svn-src-all@FreeBSD.ORG Thu Jun 28 07:28:39 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D8F9F106566B; Thu, 28 Jun 2012 07:28:39 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C49CD8FC14; Thu, 28 Jun 2012 07:28:39 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q5S7SdYZ059680; Thu, 28 Jun 2012 07:28:39 GMT (envelope-from imp@svn.freebsd.org) Received: (from imp@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q5S7SdG6059678; Thu, 28 Jun 2012 07:28:39 GMT (envelope-from imp@svn.freebsd.org) Message-Id: <201206280728.q5S7SdG6059678@svn.freebsd.org> From: Warner Losh Date: Thu, 28 Jun 2012 07:28:39 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r237693 - head/sys/dev/sio X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jun 2012 07:28:40 -0000 Author: imp Date: Thu Jun 28 07:28:39 2012 New Revision: 237693 URL: http://svn.freebsd.org/changeset/base/237693 Log: Document some MP assumptions for sio. Submitted by: bde (years ago) Modified: head/sys/dev/sio/sio.c Modified: head/sys/dev/sio/sio.c ============================================================================== --- head/sys/dev/sio/sio.c Thu Jun 28 07:26:44 2012 (r237692) +++ head/sys/dev/sio/sio.c Thu Jun 28 07:28:39 2012 (r237693) @@ -278,6 +278,11 @@ static int sio_inited; /* table and macro for fast conversion from a unit number to its com struct */ devclass_t sio_devclass; +/* + * XXX Assmues that devclass_get_device, devclass_get_softc and + * device_get_softc are fast interrupt safe. The current implementation + * of these functions are. + */ #define com_addr(unit) ((struct com_s *) \ devclass_get_softc(sio_devclass, unit)) /* XXX */