Module Name:    src
Committed By:   matt
Date:           Tue Dec 11 23:51:34 UTC 2012

Modified Files:
        src/sys/arch/arm/arm32: pmap.c

Log Message:
Fix C&P bug.


To generate a diff of this commit:
cvs rdiff -u -r1.245 -r1.246 src/sys/arch/arm/arm32/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/arm32/pmap.c
diff -u src/sys/arch/arm/arm32/pmap.c:1.245 src/sys/arch/arm/arm32/pmap.c:1.246
--- src/sys/arch/arm/arm32/pmap.c:1.245	Tue Dec 11 01:51:14 2012
+++ src/sys/arch/arm/arm32/pmap.c	Tue Dec 11 23:51:34 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.c,v 1.245 2012/12/11 01:51:14 matt Exp $	*/
+/*	$NetBSD: pmap.c,v 1.246 2012/12/11 23:51:34 matt Exp $	*/
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -212,7 +212,7 @@
 #include <arm/cpuconf.h>
 #include <arm/arm32/katelib.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.245 2012/12/11 01:51:14 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.246 2012/12/11 23:51:34 matt Exp $");
 
 #ifdef PMAP_DEBUG
 
@@ -4670,7 +4670,7 @@ pmap_copy_page_generic(paddr_t src, padd
 	const bool src_okcolor = false;
 	const bool dst_okcolor = false;
 	const vaddr_t vsrcp = csrcp + src_va_offset;
-	const vaddr_t vdstp = cdstp + src_va_offset;
+	const vaddr_t vdstp = cdstp + dst_va_offset;
 #endif
 	pt_entry_t * const src_ptep = &csrc_pte[src_va_offset >> PGSHIFT];
 	pt_entry_t * const dst_ptep = &cdst_pte[dst_va_offset >> PGSHIFT];

Reply via email to