From: Alexey Brodkin Date: Wed, 30 May 2018 08:31:07 +0000 (+0300) Subject: ARC: Reset: Use __builtin_arc_brk() instead of open-coded ASM X-Git-Tag: v2018.07-rc1~16^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8f187142e51634d6887ef397cd6abaa7fab14b21;p=u-boot 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. Signed-off-by: Alexey Brodkin --- diff --git a/arch/arc/lib/reset.c b/arch/arc/lib/reset.c index 40fb0f1fbd..fe38c51bff 100644 --- a/arch/arc/lib/reset.c +++ b/arch/arc/lib/reset.c @@ -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; }