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 Allow all physical addresses from 0...



details:   https://anonhg.NetBSD.org/src/rev/3ef7e3e24da1
branches:  trunk
changeset: 773701:3ef7e3e24da1
user:      phx <phx%NetBSD.org@localhost>
date:      Mon Feb 13 13:44:14 2012 +0000

description:
Allow all physical addresses from 0 to 0xffffffff in cpu_uarea_alloc().
This fixes a panic with amigappc, which has RAM starting at 0x08000000.
Ok by releng@.

diffstat:

 sys/arch/powerpc/powerpc/vm_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6f0264de5273 -r 3ef7e3e24da1 sys/arch/powerpc/powerpc/vm_machdep.c
--- a/sys/arch/powerpc/powerpc/vm_machdep.c     Mon Feb 13 13:37:45 2012 +0000
+++ b/sys/arch/powerpc/powerpc/vm_machdep.c     Mon Feb 13 13:44:14 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.93 2012/01/28 16:30:23 skrll Exp $    */
+/*     $NetBSD: vm_machdep.c,v 1.94 2012/02/13 13:44:14 phx Exp $      */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.93 2012/01/28 16:30:23 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.94 2012/02/13 13:44:14 phx Exp $");
 
 #include "opt_altivec.h"
 #include "opt_multiprocessor.h"
@@ -295,7 +295,7 @@
         * Allocate a new physically contiguous uarea which can be
         * direct-mapped.
         */
-       error = uvm_pglistalloc(USPACE, 0, ptoa(physmem), 0, 0, &pglist, 1, 1);
+       error = uvm_pglistalloc(USPACE, 0, ~0UL, 0, 0, &pglist, 1, 1);
        if (error) {
                if (!system)
                        return NULL;



Home | Main Index | Thread Index | Old Index