On Thu, Jan 20, 2005 at 12:15:43PM +0100, moreau francis wrote:
> I almost done to run linux in kseg2. But I noticed a
> related to the cache that I can't explain. Maybe
> have an idea...
> I configured kseg2 to map kernel space, and to be
> "uncached". So when accessing kernel space, virtual
> addr > 0xc0000000, I don't use both icache and dcache.
> When kernel maps a user page in user space, it uses
> data cache. In this scenario, some kernel data are
> corrupted. But when I map kernel space and activate
> caches to access it, it seems to work.
Live is tough, use caches ;-)
Mixing different cache modes for results in unspecified behaviour, such
as data corruption.