From owner-cvs-all@FreeBSD.ORG Wed Jul 30 22:34:21 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49B9A37B401; Wed, 30 Jul 2003 22:34:21 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5C3543FB1; Wed, 30 Jul 2003 22:34:20 -0700 (PDT) (envelope-from scottl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h6V5YK0U017416; Wed, 30 Jul 2003 22:34:20 -0700 (PDT) (envelope-from scottl@repoman.freebsd.org) Received: (from scottl@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h6V5YK4B017415; Wed, 30 Jul 2003 22:34:20 -0700 (PDT) Message-Id: <200307310534.h6V5YK4B017415@repoman.freebsd.org> From: Scott Long Date: Wed, 30 Jul 2003 22:34:20 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/i386/i386 busdma_machdep.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2003 05:34:21 -0000 scottl 2003/07/30 22:34:20 PDT FreeBSD src repository Modified files: sys/i386/i386 busdma_machdep.c Log: Allocate the S/G list in the tag, not on the stack. The enforces the rule that while many maps can exist and be loaded per tag, bus_dmamap_load() and friends can only be called on one map at a time from the tag. This is enforced via the mutex arguments in the tag. Fixing this bug means that s/g lists can be arbitrarily long in length, and also removes an ugly GNU-ism from the code. No API or ABI change is incurred. Similar changes for other platforms is forthcoming. Revision Changes Path 1.53 +32 -27 src/sys/i386/i386/busdma_machdep.c