Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/arch/i386/i386 Pull up revision 1.144 (requested by...



details:   https://anonhg.NetBSD.org/src/rev/d9cf9c22d09b
branches:  netbsd-1-6
changeset: 530551:d9cf9c22d09b
user:      grant <grant%NetBSD.org@localhost>
date:      Wed Aug 13 13:32:58 2003 +0000

description:
Pull up revision 1.144 (requested by tls in ticket #1388):

Fix a sign extension bug that caused pmap_growkernel() to fail with >2GB KVA.
Symptom observed and verified fixed by tls.

diffstat:

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

diffs (27 lines):

diff -r 528b8bd0a33f -r d9cf9c22d09b sys/arch/i386/i386/pmap.c
--- a/sys/arch/i386/i386/pmap.c Wed Aug 13 13:27:12 2003 +0000
+++ b/sys/arch/i386/i386/pmap.c Wed Aug 13 13:32:58 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.136 2002/03/27 04:47:28 chs Exp $   */
+/*     $NetBSD: pmap.c,v 1.136.4.1 2003/08/13 13:32:58 grant Exp $     */
 
 /*
  *
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.136 2002/03/27 04:47:28 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.136.4.1 2003/08/13 13:32:58 grant Exp $");
 
 #include "opt_cputype.h"
 #include "opt_user_ldt.h"
@@ -2947,7 +2947,7 @@
        int s;
        paddr_t ptaddr;
 
-       needed_kpde = (int)(maxkvaddr - VM_MIN_KERNEL_ADDRESS + (NBPD-1))
+       needed_kpde = (u_int)(maxkvaddr - VM_MIN_KERNEL_ADDRESS + (NBPD-1))
                / NBPD;
        if (needed_kpde <= nkpde)
                goto out;               /* we are OK */



Home | Main Index | Thread Index | Old Index