summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/error-injection.h
AgeCommit message (Collapse)AuthorFilesLines
2018-10-20powerpc: Add support for function error injectionNaveen N. Rao1-0/+13
We implement regs_set_return_value() and override_function_with_return() for this purpose. On powerpc, a return from a function (blr) just branches to the location contained in the link register. So, we can just update pt_regs rather than redirecting execution to a dummy function that returns. Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> Reviewed-by: Samuel Mendoza-Jonas <sam@mendozajonas.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>