Port-powerpc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kobj_machdep() __syncicache() ?
The following allows my macppc g4/400 (with 7400) to successfully
modload kernel modules without panicing:
Index: arch/powerpc/powerpc/kobj_machdep.c
===================================================================
RCS file: /cvsroot/src/sys/arch/powerpc/powerpc/kobj_machdep.c,v
retrieving revision 1.3
diff -u -r1.3 kobj_machdep.c
--- arch/powerpc/powerpc/kobj_machdep.c 18 Jan 2010 23:35:51 -0000 1.3
+++ arch/powerpc/powerpc/kobj_machdep.c 24 Mar 2011 01:06:48 -0000
@@ -145,6 +145,8 @@
int
kobj_machdep(kobj_t ko, void *base, size_t size, bool load)
{
+ if (load)
+ __syncicache(base, size);
return 0;
}
...given that this is a relatively infrequent occurrence, I don't expect
it to have a particularly adverse effect on other systems. (it seems OK
on my other macppcs, too) Is this OK to commit? If not, what should be
done to make it conditional?
+j
Home |
Main Index |
Thread Index |
Old Index