Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/hppa Flush only as much as is required. Pointe...



details:   https://anonhg.NetBSD.org/src/rev/992a52d1bdd8
branches:  trunk
changeset: 749388:992a52d1bdd8
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Nov 28 13:53:28 2009 +0000

description:
Flush only as much as is required. Pointed out by rmind.

diffstat:

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

diffs (27 lines):

diff -r 981b81ea0d59 -r 992a52d1bdd8 sys/arch/hppa/hppa/pmap.c
--- a/sys/arch/hppa/hppa/pmap.c Sat Nov 28 13:20:41 2009 +0000
+++ b/sys/arch/hppa/hppa/pmap.c Sat Nov 28 13:53:28 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.59 2009/11/27 03:23:09 rmind Exp $  */
+/*     $NetBSD: pmap.c,v 1.60 2009/11/28 13:53:28 skrll Exp $  */
 
 /*-
  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.59 2009/11/27 03:23:09 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.60 2009/11/28 13:53:28 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1681,7 +1681,7 @@
 
        /* space is cached for the copy{in,out}'s pleasure */
        pcb->pcb_space = space;
-       fdcache(HPPA_SID_KERNEL, (vaddr_t)pcb, PAGE_SIZE);
+       fdcache(HPPA_SID_KERNEL, (vaddr_t)pcb, sizeof(struct pcb));
 
        if (p == curproc)
                mtctl(pmap->pm_pid, CR_PIDR2);



Home | Main Index | Thread Index | Old Index