Signed-off-by: Oleksij Rempel <linux@xxxxxxxxxxxxxxxx> --- arch/mips/include/asm/pbl_macros.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/mips/include/asm/pbl_macros.h b/arch/mips/include/asm/pbl_macros.h index cfca117..22d41b8 100644 --- a/arch/mips/include/asm/pbl_macros.h +++ b/arch/mips/include/asm/pbl_macros.h @@ -38,6 +38,18 @@ .set pop .endm + .macro pbl_probe_mem ret1 ret2 addr + .set push + .set noreorder + la \ret1, \addr + sw zero, 0(\ret1) + li \ret2, 0x12345678 + sw \ret2, 0(\ret1) + lw \ret2, 0(\ret1) + li \ret1, 0x12345678 + .set pop + .endm + /* * ADR macro instruction (inspired by ARM) * -- 1.8.1.2 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox