Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 Do not truncate the kernel pmap phy...



details:   https://anonhg.NetBSD.org/src/rev/bc0dcffd2008
branches:  trunk
changeset: 532646:bc0dcffd2008
user:      eeh <eeh%NetBSD.org@localhost>
date:      Tue Jun 11 21:10:03 2002 +0000

description:
Do not truncate the kernel pmap physical address to an `int' before
sticking it in the context lookup table.  Fixes a booting issue on
Netra T1125s.

diffstat:

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

diffs (18 lines):

diff -r 9a36ca5700db -r bc0dcffd2008 sys/arch/sparc64/sparc64/pmap.c
--- a/sys/arch/sparc64/sparc64/pmap.c   Tue Jun 11 19:39:59 2002 +0000
+++ b/sys/arch/sparc64/sparc64/pmap.c   Tue Jun 11 21:10:03 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.121 2002/06/02 14:44:41 drochner Exp $      */
+/*     $NetBSD: pmap.c,v 1.122 2002/06/11 21:10:03 eeh Exp $   */
 #undef NO_VCACHE /* Don't forget the locked TLB in dostart */
 #define        HWREF
 /*
@@ -1281,7 +1281,7 @@
                pmap_kernel()->pm_segs=(paddr_t *)(u_long)newp;
                pmap_kernel()->pm_physaddr = newp;
                /* mark kernel context as busy */
-               ((paddr_t*)ctxbusy)[0] = (int)pmap_kernel()->pm_physaddr;
+               ctxbusy[0] = pmap_kernel()->pm_physaddr;
        }
        /*
         * finish filling out kernel pmap.



Home | Main Index | Thread Index | Old Index