From owner-cvs-src@FreeBSD.ORG Tue Mar 7 22:17:06 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A210B16A420; Tue, 7 Mar 2006 22:17:06 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73A4743D46; Tue, 7 Mar 2006 22:17:06 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k27MH6c9038096; Tue, 7 Mar 2006 22:17:06 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k27MH6vM038095; Tue, 7 Mar 2006 22:17:06 GMT (envelope-from jhb) Message-Id: <200603072217.k27MH6vM038095@repoman.freebsd.org> From: John Baldwin Date: Tue, 7 Mar 2006 22:17:06 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/ddb db_command.c ddb.h src/sys/dev/aic7xxx aic79xx_osm.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Mar 2006 22:17:06 -0000 jhb 2006-03-07 22:17:06 UTC FreeBSD src repository Modified files: sys/ddb db_command.c ddb.h sys/dev/aic7xxx aic79xx_osm.c Log: Clean up the way we handle auxiliary commands for a given ddb command table. Previously, the ddb code knew of each linker set of auxiliary commands and which explicit command list they were tied to. These changes add a simple command_table struct that contains both the static list of commands and the pointers for any auxiliary linker set of additional commands. This also makes it possible for other arbitrary command tables to be defined in other parts of the kernel w/o having to edit ddb itself. The DB_SET macro has also been trimmed down to just creating an entry in a linker set. A new DB_FUNC macro does what the old DB_SET did which is to not only add an entry to the linker set but also to include a function prototype for the function being added. With these changes, it's now also possible to create aliases for ddb functions using DB_SET() directly if desired. Revision Changes Path 1.65 +87 -97 src/sys/ddb/db_command.c 1.41 +19 -8 src/sys/ddb/ddb.h 1.24 +1 -1 src/sys/dev/aic7xxx/aic79xx_osm.c