/* for i !=0 we would need to mask out the old entry number */ asmvolatile("slbmte %0,%1" :
: "r" (vsid), "r" (esid | (SLB_NUM_BOLTED + 1))
: "memory");
pr_info("%s accessing test address 0x%lx: 0x%lx\n",
__func__, test_address, *test_ptr);
preempt_enable();
}
staticvoid lkdtm_PPC_SLB_MULTIHIT(void)
{ if (!radix_enabled()) {
pr_info("Injecting SLB multihit errors\n"); /* *Theseneednotbeseparatetests,Andtheydopretty *muchsamething.Inanycasewemustrecoverfromthe *errorsintroducedbythesefunctions,machinewouldnot *survivethesetestsincaseoffailuretohandle.
*/
inject_vmalloc_slb_multihit();
inject_kmalloc_slb_multihit();
insert_dup_slb_entry_0();
pr_info("Recovered from SLB multihit errors\n");
} else {
pr_err("XFAIL: This test is for ppc64 and with hash mode MMU only\n");
}
}
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.