Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/x86 mp_cpu_start: although fragment is commente...



details:   https://anonhg.NetBSD.org/src/rev/53d2b1f4d6ec
branches:  trunk
changeset: 755909:53d2b1f4d6ec
user:      rmind <rmind%NetBSD.org@localhost>
date:      Mon Jun 28 00:47:53 2010 +0000

description:
mp_cpu_start: although fragment is commented out, add pmap_update(), just
in case somebody would come up with a clever idea to copy-paste that.

diffstat:

 sys/arch/xen/x86/cpu.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 713d494ac91f -r 53d2b1f4d6ec sys/arch/xen/x86/cpu.c
--- a/sys/arch/xen/x86/cpu.c    Mon Jun 28 00:39:47 2010 +0000
+++ b/sys/arch/xen/x86/cpu.c    Mon Jun 28 00:47:53 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.44 2010/05/04 23:27:14 jym Exp $     */
+/*     $NetBSD: cpu.c,v 1.45 2010/06/28 00:47:53 rmind Exp $   */
 /* NetBSD: cpu.c,v 1.18 2004/02/20 17:35:01 yamt Exp  */
 
 /*-
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.44 2010/05/04 23:27:14 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.45 2010/06/28 00:47:53 rmind Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -934,8 +934,12 @@
        dwordptr[1] = target >> 4;
 
        pmap_kenter_pa (0, 0, VM_PROT_READ|VM_PROT_WRITE, 0);
+       pmap_update(pmap_kernel());
+
        memcpy ((uint8_t *) 0x467, dwordptr, 4);
+
        pmap_kremove (0, PAGE_SIZE);
+       pmap_update(pmap_kernel());
 
 #if NLAPIC > 0
        /*



Home | Main Index | Thread Index | Old Index