Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/powerpc ofppc doesn't have PMAP_MAP_POOLPAG...



details:   https://anonhg.NetBSD.org/src/rev/31c691b742cc
branches:  trunk
changeset: 766171:31c691b742cc
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Jun 17 18:59:33 2011 +0000

description:
ofppc doesn't have PMAP_MAP_POOLPAGE so make the cpu_uareas do nothing.

diffstat:

 sys/arch/powerpc/powerpc/vm_machdep.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (53 lines):

diff -r 946915f334c4 -r 31c691b742cc sys/arch/powerpc/powerpc/vm_machdep.c
--- a/sys/arch/powerpc/powerpc/vm_machdep.c     Fri Jun 17 18:40:46 2011 +0000
+++ b/sys/arch/powerpc/powerpc/vm_machdep.c     Fri Jun 17 18:59:33 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.88 2011/06/15 05:48:31 matt Exp $     */
+/*     $NetBSD: vm_machdep.c,v 1.89 2011/06/17 18:59:33 matt Exp $     */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.88 2011/06/15 05:48:31 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.89 2011/06/17 18:59:33 matt Exp $");
 
 #include "opt_altivec.h"
 #include "opt_multiprocessor.h"
@@ -286,6 +286,7 @@
 void *
 cpu_uarea_alloc(bool system)
 {
+#ifdef PMAP_MAP_POOLPAGE
        struct pglist pglist;
        int error;
 
@@ -312,6 +313,9 @@
         */
 
        return (void *)(uintptr_t)PMAP_MAP_POOLPAGE(pa);
+#else
+       return NULL;
+#endif
 }
 
 /*
@@ -320,6 +324,7 @@
 bool
 cpu_uarea_free(void *vva)
 {
+#ifdef PMAP_UNMAP_POOLPAGE
        vaddr_t va = (vaddr_t) vva;
        if (va >= VM_MIN_KERNEL_ADDRESS && va < VM_MAX_KERNEL_ADDRESS)
                return false;
@@ -334,5 +339,8 @@
                uvm_pagefree(pg);
        }
        return true;
+#else
+       return false;
+#endif
 }
 #endif /* __HAVE_CPU_UAREA_ROUTINES */



Home | Main Index | Thread Index | Old Index