Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sh5/include Add a SH5_PTEL_CACHEABLE() macro which ...



details:   https://anonhg.NetBSD.org/src/rev/04460d17b98a
branches:  trunk
changeset: 537888:04460d17b98a
user:      scw <scw%NetBSD.org@localhost>
date:      Mon Oct 07 14:42:31 2002 +0000

description:
Add a SH5_PTEL_CACHEABLE() macro which evaulates TRUE if the specified
PTEL describes a cacheable mapping.

diffstat:

 sys/arch/sh5/include/pte.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 5a6ebbb9ad63 -r 04460d17b98a sys/arch/sh5/include/pte.h
--- a/sys/arch/sh5/include/pte.h        Mon Oct 07 14:26:49 2002 +0000
+++ b/sys/arch/sh5/include/pte.h        Mon Oct 07 14:42:31 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pte.h,v 1.1 2002/07/05 13:32:01 scw Exp $      */
+/*     $NetBSD: pte.h,v 1.2 2002/10/07 14:42:31 scw Exp $      */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -104,6 +104,7 @@
 #define        SH5_PTEL_CB_DEVICE      0x1
 #define        SH5_PTEL_CB_WRITEBACK   0x2
 #define        SH5_PTEL_CB_WRITETHRU   0x3
+#define        SH5_PTEL_CACHEABLE(p)   (((p)&SH5_PTEL_CB_MASK)>=SH5_PTEL_CB_WRITEBACK)
 
 #define        SH5_PTEL_SZ_MASK        0x18
 #define        SH5_PTEL_SZ_4KB         0x00



Home | Main Index | Thread Index | Old Index