void __init sh_mv_setup(void)
{ /* * Only overload the machvec if one hasn't been selected on * the command line with sh_mv=
*/ if (!machvec_selected) { unsignedlong machvec_size;
/* * 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.
*/ if (machvec_size >= sizeof(struct sh_machine_vector))
sh_mv = *(struct sh_machine_vector *)__machvec_start;
}
/* * Manually walk the vec, fill in anything that the board hasn't yet * by hand, wrapping to the generic implementation.
*/ #define mv_set(elem) do { \ if (!sh_mv.mv_##elem) \
sh_mv.mv_##elem = generic_##elem; \
} while (0)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.