Geert Uytterhoeven wrote: > For specialized systems, you can always introduce the option to generate > the TLB handler at compile time: What do you mean by "specialized system" ? If for some platforms we could generate the TLB handlers at compile time, we could do it for all platforms, specially if the handler only depends on the cpu type, no ? > - Enhance tlbex.c to be able to compile it for the host, and generate > a fixed TLB handler, based on CONFIG_* options, if > CONFIG_STATIC_TLB_HANDLER (buried deep in depends on EMBEDDED && > ADVANCED && I_KNOW_WHAT_I_AM_DOING) is set. It may mean putting a lot of hacks in tlbex.c making it just a PITA to enhance and to maintain. IMHO, just have a static TLB handler generator is simpler specially if we don't need to patch the handler later. But we need to be sure nothing can be discover at runtime only for current and future supported cpus... thanks, Franck