Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 Use cpu_idcache_wbinv_range so we don't n...
details: https://anonhg.NetBSD.org/src/rev/34b8795ecbd7
branches: trunk
changeset: 789153:34b8795ecbd7
user: matt <matt%NetBSD.org@localhost>
date: Fri Aug 09 07:12:42 2013 +0000
description:
Use cpu_idcache_wbinv_range so we don't nuke the entire idcache.
Add a test to make sure we are only modifying movw/movt
diffstat:
sys/arch/arm/arm32/kobj_machdep.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r 33ea087efbfe -r 34b8795ecbd7 sys/arch/arm/arm32/kobj_machdep.c
--- a/sys/arch/arm/arm32/kobj_machdep.c Fri Aug 09 07:11:39 2013 +0000
+++ b/sys/arch/arm/arm32/kobj_machdep.c Fri Aug 09 07:12:42 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kobj_machdep.c,v 1.6 2013/08/09 06:00:09 matt Exp $ */
+/* $NetBSD: kobj_machdep.c,v 1.7 2013/08/09 07:12:42 matt Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kobj_machdep.c,v 1.6 2013/08/09 06:00:09 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kobj_machdep.c,v 1.7 2013/08/09 07:12:42 matt Exp $");
#define ELFSIZE ARCH_ELFSIZE
@@ -120,6 +120,8 @@
case R_ARM_MOVW_ABS_NC:
case R_ARM_MOVT_ABS:
+ if ((*where & 0x0fb00000) != 0x03000000)
+ break;
addr = kobj_sym_lookup(ko, symidx);
if (addr == 0)
break;
@@ -178,7 +180,7 @@
if (load) {
#ifndef _RUMPKERNEL
- cpu_idcache_wbinv_all();
+ cpu_idcache_wbinv_range((vaddr_t)base, size);
cpu_tlb_flushID();
#endif
}
Home |
Main Index |
Thread Index |
Old Index