ARC: Reset: Use __builtin_arc_brk() instead of open-coded ASM
authorAlexey Brodkin <abrodkin@synopsys.com>
Wed, 30 May 2018 08:31:07 +0000 (11:31 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Thu, 31 May 2018 17:13:29 +0000 (20:13 +0300)
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 <abrodkin@synopsys.com>
arch/arc/lib/reset.c

index 40fb0f1fbd10d5a77b959f03f6d93ecd1051c982..fe38c51bff9395dfc0023d9c446b3c8b94a1dd47 100644 (file)
@@ -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;
 }