Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh5/sh5 In pmap_page_is_cacheable(), add an explici...
details: https://anonhg.NetBSD.org/src/rev/61808c1f20aa
branches: trunk
changeset: 537553:61808c1f20aa
user: scw <scw%NetBSD.org@localhost>
date: Wed Oct 02 12:19:38 2002 +0000
description:
In pmap_page_is_cacheable(), add an explicit check for KSEG0 addresses.
They don't show up in the page tables, so the default "not cacheable"
status is wrong.
This finally gets my ex(4) working on the Cayman's PCIbus.
diffstat:
sys/arch/sh5/sh5/pmap.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 04fb0fb88f85 -r 61808c1f20aa sys/arch/sh5/sh5/pmap.c
--- a/sys/arch/sh5/sh5/pmap.c Wed Oct 02 11:17:41 2002 +0000
+++ b/sys/arch/sh5/sh5/pmap.c Wed Oct 02 12:19:38 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.12 2002/10/01 15:01:48 scw Exp $ */
+/* $NetBSD: pmap.c,v 1.13 2002/10/02 12:19:38 scw Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -1115,6 +1115,9 @@
ptel_t ptel = 0;
int s;
+ if (va < SH5_KSEG1_BASE && va >= SH5_KSEG0_BASE)
+ return (1);
+
s = splhigh();
pvo = pmap_pvo_find_va(pm, va, NULL);
if (pvo != NULL)
Home |
Main Index |
Thread Index |
Old Index