Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/oea A little PMAP_OEA64 pmap support.



details:   https://anonhg.NetBSD.org/src/rev/cf0c3267cdc8
branches:  trunk
changeset: 764723:cf0c3267cdc8
user:      matt <matt%NetBSD.org@localhost>
date:      Mon May 02 01:49:23 2011 +0000

description:
A little PMAP_OEA64 pmap support.

diffstat:

 sys/arch/powerpc/oea/pmap.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r bc6ff7099b5d -r cf0c3267cdc8 sys/arch/powerpc/oea/pmap.c
--- a/sys/arch/powerpc/oea/pmap.c       Mon May 02 01:48:05 2011 +0000
+++ b/sys/arch/powerpc/oea/pmap.c       Mon May 02 01:49:23 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.78 2011/02/18 16:40:50 matt Exp $   */
+/*     $NetBSD: pmap.c,v 1.79 2011/05/02 01:49:23 matt Exp $   */
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -63,7 +63,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.78 2011/02/18 16:40:50 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.79 2011/05/02 01:49:23 matt Exp $");
 
 #define        PMAP_NOOPNAMES
 
@@ -745,12 +745,10 @@
        pt->pte_hi = (va_to_vsid(pm, va) << PTE_VSID_SHFT)
            | (((va & ADDR_PIDX) >> (ADDR_API_SHFT - PTE_API_SHFT)) & PTE_API);
        pt->pte_lo = pte_lo;
-#elif defined (PMAP_OEA64_BRIDGE)
+#elif defined (PMAP_OEA64_BRIDGE) || defined (PMAP_OEA64)
        pt->pte_hi = ((u_int64_t)va_to_vsid(pm, va) << PTE_VSID_SHFT)
            | (((va & ADDR_PIDX) >> (ADDR_API_SHFT - PTE_API_SHFT)) & PTE_API);
        pt->pte_lo = (u_int64_t) pte_lo;
-#elif defined (PMAP_OEA64)
-#error PMAP_OEA64 not supported
 #endif /* PMAP_OEA */
 }
 



Home | Main Index | Thread Index | Old Index