Source-Changes-HG archive

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

[src/uebayasi-xip]: src/sys/arch/powerpc/powerpc RCS id. Minor clean up.



details:   https://anonhg.NetBSD.org/src/rev/3384f30426ea
branches:  uebayasi-xip
changeset: 751787:3384f30426ea
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Wed Aug 25 14:32:54 2010 +0000

description:
RCS id.  Minor clean up.

diffstat:

 sys/arch/powerpc/powerpc/xmd_machdep.c |  17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diffs (46 lines):

diff -r 5ee7639f207b -r 3384f30426ea sys/arch/powerpc/powerpc/xmd_machdep.c
--- a/sys/arch/powerpc/powerpc/xmd_machdep.c    Wed Aug 25 14:32:30 2010 +0000
+++ b/sys/arch/powerpc/powerpc/xmd_machdep.c    Wed Aug 25 14:32:54 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xmd_machdep.c,v 1.1.2.1 2010/08/19 12:36:58 uebayasi Exp $     */
+/*     $NetBSD: xmd_machdep.c,v 1.1.2.2 2010/08/25 14:32:54 uebayasi Exp $     */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -26,8 +26,15 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include <sys/cdefs.h>
+__KERNEL_RCSID(0, "$NetBSD: xmd_machdep.c,v 1.1.2.2 2010/08/25 14:32:54 uebayasi Exp $");
+
 #include "opt_xip.h"
 
+#ifndef XIP
+#error xmd(4) needs options XIP
+#endif
+
 #include <sys/param.h>
 #include <sys/mman.h>
 
@@ -49,16 +56,16 @@
 void *
 xmd_machdep_physload(vaddr_t addr, size_t size)
 {
-       paddr_t s, e, as, ae;
+       paddr_t start, end;
 
        /* addr is in PA == VA RAM area. */
        KASSERT(addr >= 0x00000000);
        KASSERT(addr < 0x80000000);
 
-       s = as = (addr) >> PAGE_SHIFT;
-       e = ae = (addr + size) >> PAGE_SHIFT;
+       start = (addr) >> PAGE_SHIFT;
+       end = (addr + size) >> PAGE_SHIFT;
 
-       return uvm_page_physload_device(s, e, as, ae, PROT_READ, 0);
+       return uvm_page_physload_device(start, end, start, end, PROT_READ, 0);
 }
 
 void



Home | Main Index | Thread Index | Old Index