Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Actually use KSEG1 offset for KSEG1 addre...



details:   https://anonhg.NetBSD.org/src/rev/3669df39b71e
branches:  trunk
changeset: 483628:3669df39b71e
user:      soren <soren%NetBSD.org@localhost>
date:      Tue Mar 14 14:08:55 2000 +0000

description:
Actually use KSEG1 offset for KSEG1 addresses in kvtophys().
>From Jeff Smith and Ethan Solomita at Geocast.

diffstat:

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

diffs (27 lines):

diff -r afd2ee479870 -r 3669df39b71e sys/arch/mips/mips/vm_machdep.c
--- a/sys/arch/mips/mips/vm_machdep.c   Tue Mar 14 13:06:29 2000 +0000
+++ b/sys/arch/mips/mips/vm_machdep.c   Tue Mar 14 14:08:55 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.47 2000/01/20 22:18:57 sommerfeld Exp $       */
+/*     $NetBSD: vm_machdep.c,v 1.48 2000/03/14 14:08:55 soren Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.47 2000/01/20 22:18:57 sommerfeld Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.48 2000/03/14 14:08:55 soren Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -398,7 +398,7 @@
                return phys;
        }
        if (kva >= MIPS_KSEG1_START)
-               return MIPS_KSEG0_TO_PHYS(kva);
+               return MIPS_KSEG1_TO_PHYS(kva);
 
        if (kva >= MIPS_KSEG0_START)
                return MIPS_KSEG0_TO_PHYS(kva);



Home | Main Index | Thread Index | Old Index