diff --git a/arch/mips/include/asm/pbl_macros.h b/arch/mips/include/asm/pbl_macros.h index c4ae6a241..dbe341063 100644 --- a/arch/mips/include/asm/pbl_macros.h +++ b/arch/mips/include/asm/pbl_macros.h @@ -60,6 +60,18 @@ .set pop .endm + .macro pbl_blt addr label tmp + .set push + .set noreorder + move \tmp, ra # preserve ra beforehand + bal 253f + nop +253: + bltu ra, \addr, \label + move ra, \tmp # restore ra + .set pop + .endm + .macro pbl_sleep reg count .set push .set noreorder