From d85b94aac63eca3af6761e1c39746aba7d668194 Mon Sep 17 00:00:00 2001 From: Peter Mamonov Date: Tue, 4 Jun 2019 13:55:52 +0300 Subject: MIPS: use anonymous labels in ENTRY_FUNCTION_END and STOP_WITH_DEBUG_EVENT macros Use of global labels of the same name inside ENTRY_FUNCTION_END and STOP_WITH_DEBUG_EVENT prevents simultaneous use of both macros. It also prevents multiple use of one of them. Signed-off-by: Peter Mamonov Reviewed-by: Oleksij Rempel Signed-off-by: Sascha Hauer --- arch/mips/include/asm/asm.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'arch/mips/include') diff --git a/arch/mips/include/asm/asm.h b/arch/mips/include/asm/asm.h index a85467ceed..69931662ff 100644 --- a/arch/mips/include/asm/asm.h +++ b/arch/mips/include/asm/asm.h @@ -102,8 +102,8 @@ EXPORT(symbol) nop; \ \ /* No return */ \ -__error: \ - b __error; \ +1: \ + b 1b; \ nop; /* @@ -116,8 +116,8 @@ __error: \ /* trigger a soft breakpoint for OpenOCD */ \ SDBBP; \ /* position independent variant of dead loop */ \ - __error: \ - b __error; \ +1: \ + b 1b; \ nop; \ /* Call some code from .text section. \ * It is needed to keep same linker script for \ -- cgit v1.2.3