Module Name:    src
Committed By:   matt
Date:           Wed Nov  9 17:05:50 UTC 2011

Modified Files:
        src/sys/arch/mips/mips: mips_fixup.c

Log Message:
Make sure to invalidate correct size.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/mips/mips/mips_fixup.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/mips/mips/mips_fixup.c
diff -u src/sys/arch/mips/mips/mips_fixup.c:1.9 src/sys/arch/mips/mips/mips_fixup.c:1.10
--- src/sys/arch/mips/mips/mips_fixup.c:1.9	Sat Aug 27 13:23:52 2011
+++ src/sys/arch/mips/mips/mips_fixup.c	Wed Nov  9 17:05:50 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: mips_fixup.c,v 1.9 2011/08/27 13:23:52 bouyer Exp $	*/
+/*	$NetBSD: mips_fixup.c,v 1.10 2011/11/09 17:05:50 matt Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mips_fixup.c,v 1.9 2011/08/27 13:23:52 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_fixup.c,v 1.10 2011/11/09 17:05:50 matt Exp $");
 
 #include "opt_mips3_wired.h"
 #include "opt_multiprocessor.h"
@@ -138,7 +138,8 @@ mips_fixup_exceptions(mips_fixup_callbac
 	}
 
 	if (fixed)
-		mips_icache_sync_range((vaddr_t)start, end - start);
+		mips_icache_sync_range((vaddr_t)start,
+		   sizeof(start[0]) * (end - start));
 		
 	return fixed;
 }

Reply via email to