diff options
author | Alexey Brodkin | 2018-05-30 11:31:07 +0300 |
---|---|---|
committer | Alexey Brodkin | 2018-05-31 20:13:29 +0300 |
commit | 8f187142e51634d6887ef397cd6abaa7fab14b21 (patch) | |
tree | 29973b4fb46c63faab32abbeb0b2e8f60cb1b2ed /arch/arc/lib | |
parent | ef2cd492adf20fa301a8c5b1ee516aedb677bba8 (diff) |
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 <abrodkin@synopsys.com>
Diffstat (limited to 'arch/arc/lib')
-rw-r--r-- | arch/arc/lib/reset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arc/lib/reset.c b/arch/arc/lib/reset.c index 40fb0f1fbd1..fe38c51bff9 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; } |