Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips Make sure to invalidate correct size.
details: https://anonhg.NetBSD.org/src/rev/e458138461a9
branches: trunk
changeset: 771105:e458138461a9
user: matt <matt%NetBSD.org@localhost>
date: Wed Nov 09 17:05:50 2011 +0000
description:
Make sure to invalidate correct size.
diffstat:
sys/arch/mips/mips/mips_fixup.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r ff7b2662cac5 -r e458138461a9 sys/arch/mips/mips/mips_fixup.c
--- a/sys/arch/mips/mips/mips_fixup.c Wed Nov 09 15:14:44 2011 +0000
+++ b/sys/arch/mips/mips/mips_fixup.c Wed Nov 09 17:05:50 2011 +0000
@@ -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 @@
}
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;
}
Home |
Main Index |
Thread Index |
Old Index