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 Use VM_PAGE_TO_PHYS().



details:   https://anonhg.NetBSD.org/src/rev/0e53b7b081ef
branches:  trunk
changeset: 758573:0e53b7b081ef
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Tue Nov 09 06:47:24 2010 +0000

description:
Use VM_PAGE_TO_PHYS().

diffstat:

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

diffs (27 lines):

diff -r 8801855a97b4 -r 0e53b7b081ef sys/arch/powerpc/powerpc/rtas.c
--- a/sys/arch/powerpc/powerpc/rtas.c   Tue Nov 09 06:41:03 2010 +0000
+++ b/sys/arch/powerpc/powerpc/rtas.c   Tue Nov 09 06:47:24 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtas.c,v 1.8 2008/04/08 02:33:03 garbled Exp $ */
+/*     $NetBSD: rtas.c,v 1.9 2010/11/09 06:47:24 uebayasi Exp $ */
 
 /*
  * CHRP RTAS support routines
@@ -9,7 +9,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtas.c,v 1.8 2008/04/08 02:33:03 garbled Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtas.c,v 1.9 2010/11/09 06:47:24 uebayasi Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -123,7 +123,7 @@
            &pglist, 1, 0))
                goto fail;
 
-       sc->ra_base_pa = TAILQ_FIRST(&pglist)->phys_addr;
+       sc->ra_base_pa = VM_PAGE_TO_PHYS(TAILQ_FIRST(&pglist));
 
        ih = OF_open("/rtas");
        if (ih == -1)



Home | Main Index | Thread Index | Old Index