From e185c586c35eb5dc14564ee60f68d0f9d2eb04c2 Mon Sep 17 00:00:00 2001 From: rearnsha Date: Sat, 27 Oct 2001 16:45:35 +0000 Subject: [PATCH] Export pte_cache_mode. Define PT_CACHEABLE in terms of it. --- sys/arch/arm/include/pte.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/arch/arm/include/pte.h b/sys/arch/arm/include/pte.h index 5855af6ae6ba..a9311c2f8193 100644 --- a/sys/arch/arm/include/pte.h +++ b/sys/arch/arm/include/pte.h @@ -1,4 +1,4 @@ -/* $NetBSD: pte.h,v 1.2 2001/06/25 23:22:39 chris Exp $ */ +/* $NetBSD: pte.h,v 1.3 2001/10/27 16:45:35 rearnsha Exp $ */ /* * Copyright (c) 1994 Mark Brinicombe. @@ -74,7 +74,11 @@ typedef int pt_entry_t; /* page table entry */ #define PT_C 0x08 /* Phys - Cacheable */ #define PT_U 0x10 /* Phys - Updateable */ -#define PT_CACHEABLE (PT_B | PT_C) +#ifndef _LOCORE +extern pt_entry_t pte_cache_mode; + +#define PT_CACHEABLE (pte_cache_mode) +#endif /* Page R/M attributes (in pmseg.attrs). */ #define PT_M 0x01 /* Virt - Modified */