add definitions for non-cached pages
This commit is contained in:
parent
1f1797c9c0
commit
8bad22882a
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mips1_pte.h,v 1.15 2005/12/11 12:18:09 christos Exp $ */
|
||||
/* $NetBSD: mips1_pte.h,v 1.16 2007/07/17 03:53:56 macallan Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -123,6 +123,8 @@ unsigned int pg_prot:2, /* SW: access control */
|
|||
#define MIPS1_PG_ROPAGE MIPS1_PG_V
|
||||
#define MIPS1_PG_RWPAGE MIPS1_PG_D
|
||||
#define MIPS1_PG_CWPAGE 0
|
||||
#define MIPS1_PG_RWNCPAGE (MIPS1_PG_D | MIPS1_PG_N)
|
||||
#define MIPS1_PG_CWNCPAGE MIPS1_PG_N
|
||||
#define MIPS1_PG_IOPAGE (MIPS1_PG_D | MIPS1_PG_N)
|
||||
|
||||
#define mips1_tlbpfn_to_paddr(x) ((x) & MIPS1_PG_FRAME)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mips3_pte.h,v 1.21 2005/12/11 12:18:09 christos Exp $ */
|
||||
/* $NetBSD: mips3_pte.h,v 1.22 2007/07/17 03:53:56 macallan Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -142,8 +142,15 @@ struct tlb {
|
|||
/* Not wr-prot not clean */
|
||||
#define MIPS3_PG_RWPAGE (MIPS3_PG_V | MIPS3_PG_D | MIPS3_PG_CACHED)
|
||||
|
||||
/* Not wr-prot not clean not cached */
|
||||
#define MIPS3_PG_RWNCPAGE (MIPS3_PG_V | MIPS3_PG_D | MIPS3_PG_UNCACHED)
|
||||
|
||||
/* Not wr-prot but clean */
|
||||
#define MIPS3_PG_CWPAGE (MIPS3_PG_V | MIPS3_PG_CACHED)
|
||||
|
||||
/* Not wr-prot but clean not cached*/
|
||||
#define MIPS3_PG_CWNCPAGE (MIPS3_PG_V | MIPS3_PG_UNCACHED)
|
||||
|
||||
#define MIPS3_PG_IOPAGE(cca) \
|
||||
(MIPS3_PG_G | MIPS3_PG_V | MIPS3_PG_D | MIPS3_CCA_TO_PG(cca))
|
||||
#define MIPS3_PG_FRAME 0x3fffffc0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pte.h,v 1.16 2006/02/16 20:17:14 perry Exp $ */
|
||||
/* $NetBSD: pte.h,v 1.17 2007/07/17 03:53:56 macallan Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -87,7 +87,9 @@ int pmap_is_page_ro(pmap_t, vaddr_t, int);
|
|||
#define mips_pg_ro_bit() (MIPS1_PG_RO)
|
||||
#define mips_pg_ropage_bit() (MIPS1_PG_RO) /* XXX not MIPS1_PG_ROPAGE? */
|
||||
#define mips_pg_rwpage_bit() (MIPS1_PG_RWPAGE)
|
||||
#define mips_pg_rwncpage_bit() (MIPS1_PG_RWNCPAGE)
|
||||
#define mips_pg_cwpage_bit() (MIPS1_PG_CWPAGE)
|
||||
#define mips_pg_cwncpage_bit() (MIPS1_PG_CWNCPAGE)
|
||||
#define mips_pg_global_bit() (MIPS1_PG_G)
|
||||
#define mips_pg_wired_bit() (MIPS1_PG_WIRED)
|
||||
|
||||
|
@ -109,7 +111,9 @@ int pmap_is_page_ro(pmap_t, vaddr_t, int);
|
|||
#define mips_pg_ro_bit() (MIPS3_PG_RO)
|
||||
#define mips_pg_ropage_bit() (MIPS3_PG_ROPAGE)
|
||||
#define mips_pg_rwpage_bit() (MIPS3_PG_RWPAGE)
|
||||
#define mips_pg_rwncpage_bit() (MIPS3_PG_RWNCPAGE)
|
||||
#define mips_pg_cwpage_bit() (MIPS3_PG_CWPAGE)
|
||||
#define mips_pg_cwncpage_bit() (MIPS3_PG_CWNCPAGE)
|
||||
#define mips_pg_global_bit() (MIPS3_PG_G)
|
||||
#define mips_pg_wired_bit() (MIPS3_PG_WIRED)
|
||||
|
||||
|
|
Loading…
Reference in New Issue