Skip to contentSkip to conversation

ARC: Reset: Use __builtin_arc_brk() instead of open-coded ASM

PATCH New Alexey Brodkin 1 participant 1 message May 31, 2018 Synopsys ARC architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARC: Reset: Use __builtin_arc_brk() instead of open-coded ASM

For quite some time we have a GCC's built-in which inserts BRK instruction so let's use it instead of simple insertion of in-line assembly.

---
 arch/arc/lib/reset.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arc/lib/reset.c +1 -1
index 40fb0f1fbd10..fe38c51bff93 100644
@@ -12,7 +12,7 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
 
 #ifdef DEBUG
 	/* Stop debug session here */
-	__asm__("brk");
+	__builtin_arc_brk();
 #endif
 	return 0;
 }
Signature · 1 line
2.17.0