Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc Call __syncicache() when loading a ...
details: https://anonhg.NetBSD.org/src/rev/c3ee4a2ea347
branches: trunk
changeset: 763573:c3ee4a2ea347
user: riz <riz%NetBSD.org@localhost>
date: Fri Mar 25 19:37:51 2011 +0000
description:
Call __syncicache() when loading a kobj. Now I can load kernel modules
on my macppc with a ppc7400 without crashing.
diffstat:
sys/arch/powerpc/powerpc/kobj_machdep.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 2b3a7de2fa66 -r c3ee4a2ea347 sys/arch/powerpc/powerpc/kobj_machdep.c
--- a/sys/arch/powerpc/powerpc/kobj_machdep.c Fri Mar 25 19:19:45 2011 +0000
+++ b/sys/arch/powerpc/powerpc/kobj_machdep.c Fri Mar 25 19:37:51 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kobj_machdep.c,v 1.3 2010/01/18 23:35:51 jmmv Exp $ */
+/* $NetBSD: kobj_machdep.c,v 1.4 2011/03/25 19:37:51 riz 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.3 2010/01/18 23:35:51 jmmv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kobj_machdep.c,v 1.4 2011/03/25 19:37:51 riz Exp $");
#define ELFSIZE ARCH_ELFSIZE
@@ -145,6 +145,8 @@
int
kobj_machdep(kobj_t ko, void *base, size_t size, bool load)
{
+ if (load)
+ __syncicache(base, size);
return 0;
}
Home |
Main Index |
Thread Index |
Old Index