Module Name:    src
Committed By:   uebayasi
Date:           Tue Nov  9 06:47:24 UTC 2010

Modified Files:
        src/sys/arch/powerpc/powerpc: rtas.c

Log Message:
Use VM_PAGE_TO_PHYS().


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/powerpc/powerpc/rtas.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/powerpc/powerpc/rtas.c
diff -u src/sys/arch/powerpc/powerpc/rtas.c:1.8 src/sys/arch/powerpc/powerpc/rtas.c:1.9
--- src/sys/arch/powerpc/powerpc/rtas.c:1.8	Tue Apr  8 02:33:03 2008
+++ src/sys/arch/powerpc/powerpc/rtas.c	Tue Nov  9 06:47:24 2010
@@ -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)

Reply via email to