From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 28 Jan 2005 13:24:07 -1000 From: Tim Newsham To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] cache question In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Topicbox-Message-UUID: 384833d4-eace-11e9-9e20-41e7f4b1d025 > I'm seeing a bug where I get some random crashes when I boot > my kernel with the dcache on which go away if I turn off the > dcache. I'm guessing this means that something in the cache > needs to get flushed that isnt. What it is or when I should > flush is less clear to me. The portable code lets the machine > specific code know when it should perform an instruction cache > flush, but never indicates any data flushes. The closest thing I've found to a solution so far is to flush a page from the dcache in putmmu() every time a page is added. This seems a bit excessive (compare with icache which is only flushed when PG_TXTFLUSH is indicated). Tim N.