Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/mpc6xx Fix thinko. Do the mask before the ...



details:   https://anonhg.NetBSD.org/src/rev/ce610ad3c094
branches:  trunk
changeset: 513702:ce610ad3c094
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Aug 08 21:09:58 2001 +0000

description:
Fix thinko.  Do the mask before the divide.

diffstat:

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

diffs (18 lines):

diff -r 583425e8a85b -r ce610ad3c094 sys/arch/powerpc/mpc6xx/pmap.c
--- a/sys/arch/powerpc/mpc6xx/pmap.c    Wed Aug 08 18:30:45 2001 +0000
+++ b/sys/arch/powerpc/mpc6xx/pmap.c    Wed Aug 08 21:09:58 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.20 2001/07/22 11:29:45 wiz Exp $    */
+/*     $NetBSD: pmap.c,v 1.21 2001/08/08 21:09:58 matt Exp $   */
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -2746,7 +2746,7 @@
        /*
         * Make sure kernel vsid is allocated as well as VSID 0.
         */
-       pmap_vsid_bitmap[(KERNEL_VSIDBITS / VSID_NBPW) & (NPMAPS-1)]
+       pmap_vsid_bitmap[(KERNEL_VSIDBITS & (NPMAPS-1)) / VSID_NBPW]
                |= 1 << (KERNEL_VSIDBITS % VSID_NBPW);
        pmap_vsid_bitmap[0] |= 1;
 



Home | Main Index | Thread Index | Old Index