From owner-freebsd-smp Mon Aug 25 15:51:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA17926 for smp-outgoing; Mon, 25 Aug 1997 15:51:13 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA17911 for ; Mon, 25 Aug 1997 15:51:02 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id IAA00439; Tue, 26 Aug 1997 08:50:35 +1000 Date: Tue, 26 Aug 1997 08:50:35 +1000 From: Bruce Evans Message-Id: <199708252250.IAA00439@godzilla.zeta.org.au> To: smp@FreeBSD.ORG, ulbright@cs.washington.edu Subject: Re: write protection settings Sender: owner-freebsd-smp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Can someone tell me where write protection bits are set for the kernel >text? In locore.s. >I'm experiencing a pagefault when setting a breakpoint in my >debugger and it seems to occur when writing to the memory address where >the bp is to go. That bug was normal for a month or two until a few weeks ago. The bug was in 4MB page handling (which I think isn't used for SMP). The kernel text is normally entirely unprotected when 4MB pages are used (this is another bug; 4MB data section alignment is required to fix it) but ddb attempts to unprotect the text on the fly anyway, and it used to write to wong places in the page tables when the relevant text address is in a 4MB page. Bruce