From: EXTERNAL B. M. (P. ST-FIR/Eng) <ext...@de...> - 2007-08-07 09:58:58
|
Paul Mundt wrote: > Does something like this help? >=20 > diff --git a/arch/sh/kernel/machvec.c b/arch/sh/kernel/machvec.c > index 23c5948..129b2cf 100644 > --- a/arch/sh/kernel/machvec.c > +++ b/arch/sh/kernel/machvec.c > @@ -91,6 +91,13 @@ void __init sh_mv_setup(void) > (unsigned long)&__machvec_start); >=20 > /* > + * Sanity check for machvec section alignment. Ensure > + * __initmv hasn't been misused. > + */ > + if (machvec_size % sizeof(struct sh_machine_vector)) > + panic("machvec misaligned, invalid __initmv use?"); > + > + /* > * If the machvec hasn't been preselected, use the first > * vector (usually the only one) from .machvec.init. > */ It would have found my fault and it will probably find the faults of others.=20 I don't think this error is very extraordinary, because __initmv abuse was once a goodness. ;-) http://lkml.org/lkml/diff/2007/6/23/116/1 |