Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hppa/hppa Flush the d-cache and i-cache to make sur...
details: https://anonhg.NetBSD.org/src/rev/bcce2e4dfc83
branches: trunk
changeset: 772500:bcce2e4dfc83
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Jan 06 09:09:25 2012 +0000
description:
Flush the d-cache and i-cache to make sure the text area of the module
is dealt with properly.
diffstat:
sys/arch/hppa/hppa/kobj_machdep.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r ae418ee1bada -r bcce2e4dfc83 sys/arch/hppa/hppa/kobj_machdep.c
--- a/sys/arch/hppa/hppa/kobj_machdep.c Fri Jan 06 08:54:05 2012 +0000
+++ b/sys/arch/hppa/hppa/kobj_machdep.c Fri Jan 06 09:09:25 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kobj_machdep.c,v 1.6 2011/12/13 12:55:50 skrll Exp $ */
+/* $NetBSD: kobj_machdep.c,v 1.7 2012/01/06 09:09:25 skrll 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 2011/12/13 12:55:50 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kobj_machdep.c,v 1.7 2012/01/06 09:09:25 skrll Exp $");
#define ELFSIZE ARCH_ELFSIZE
@@ -215,8 +215,10 @@
kobj_machdep(kobj_t ko, void *base, size_t size, bool load)
{
- if (load)
+ if (load) {
fdcache(HPPA_SID_KERNEL, (vaddr_t)base, size);
+ ficache(HPPA_SID_KERNEL, (vaddr_t)base, size);
+ }
return 0;
}
Home |
Main Index |
Thread Index |
Old Index