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 Unlike most other platforms, PowerP...



details:   https://anonhg.NetBSD.org/src/rev/625a91715835
branches:  trunk
changeset: 515627:625a91715835
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Sun Sep 30 01:23:47 2001 +0000

description:
Unlike most other platforms, PowerPC uses a 1:1 mapping for d_mmap and
pmap_phys_address()...

diffstat:

 sys/arch/powerpc/powerpc/mem.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r ffdfef0c371e -r 625a91715835 sys/arch/powerpc/powerpc/mem.c
--- a/sys/arch/powerpc/powerpc/mem.c    Sun Sep 30 00:57:42 2001 +0000
+++ b/sys/arch/powerpc/powerpc/mem.c    Sun Sep 30 01:23:47 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mem.c,v 1.11 2001/09/29 23:36:54 mycroft Exp $ */
+/*     $NetBSD: mem.c,v 1.12 2001/09/30 01:23:47 mycroft Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -157,5 +157,5 @@
 
        if (atop(off) >= physmem && suser(p->p_ucred, &p->p_acflag) != 0)
                return (-1);
-       return (atop(off));
+       return (trunc_page((paddr_t)off));
 }



Home | Main Index | Thread Index | Old Index