Le Tuesday 23 June 2009 10:46:37 konrad@xxxxxxxxxxx, vous avez écrit : > From: Konrad Eisele <konrad@xxxxxxxxxxx> > > The sparc-leon caches are virtually tagged so a flush is needed on ctx > switch. > > Signed-off-by: Konrad Eisele <konrad@xxxxxxxxxxx> [snip] > @@ -1992,6 +2035,13 @@ static void __init get_srmmu_type(void) > psr_typ = (psr >> 28) & 0xf; > psr_vers = (psr >> 24) & 0xf; > > + if (sparc_cpu_model == sparc_leon) { > + psr_typ = 0xf; /* hardcoded ids for older models/simulators */ > + psr_vers = 2; > + init_leon(); > + return; > + } > + > /* First, check for HyperSparc or Cypress. */ > if(mod_typ == 1) { > switch(mod_rev) { The comment is now wrong, should be "First, check for Leon" and move to the check on sparc_cpu_model of course. -- Best regards, Florian Fainelli Email : florian@xxxxxxxxxxx http://openwrt.org ------------------------------- -- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html