From owner-freebsd-arch Mon Apr 9 12: 7:49 2001 Delivered-To: freebsd-arch@freebsd.org Received: from smtp01.primenet.com (smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (Postfix) with ESMTP id C868A37B424 for ; Mon, 9 Apr 2001 12:07:47 -0700 (PDT) (envelope-from tlambert@usr08.primenet.com) Received: (from daemon@localhost) by smtp01.primenet.com (8.9.3/8.9.3) id MAA01025; Mon, 9 Apr 2001 12:06:14 -0700 (MST) Received: from usr08.primenet.com(206.165.6.208) via SMTP by smtp01.primenet.com, id smtpdAAADQayUb; Mon Apr 9 12:05:59 2001 Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id MAA27205; Mon, 9 Apr 2001 12:07:29 -0700 (MST) From: Terry Lambert Message-Id: <200104091907.MAA27205@usr08.primenet.com> Subject: Re: Making ddb a kld To: grog@lemis.com (Greg Lehey) Date: Mon, 9 Apr 2001 19:07:29 +0000 (GMT) Cc: tlambert@primenet.com (Terry Lambert), FreeBSD-arch@FreeBSD.ORG In-Reply-To: <20010407104709.B24010@wantadilla.lemis.com> from "Greg Lehey" at Apr 07, 2001 10:47:09 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > >> 1. This will require moving all the ddb code, which is scattered > >> around the system, into a separate file. I'm prepared to do the > >> work, but it's possible that somebody would complain about the > >> colour of the bikeshed. Here's your chance. > > > > How does it deal with the locore.s issues? > > Which locore.s issues? BDE's debugger hooks in multiple places in locore.s, both for the signature compare for startup, and for bdb_prepare_paging() and bdb_commit_paging() to permit tracing through initi386(). It also changes the kernel text mapping from read-only to read/write, as well as hooking the debugging trap in the IDT, very early on. I don't see how you could do several of these things in a loadable module, unless you pretended it was always loaded (and eat the IDT and other overhead). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message