projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef2cd49
)
ARC: Reset: Use __builtin_arc_brk() instead of open-coded ASM
author
Alexey Brodkin
<abrodkin@synopsys.com>
Wed, 30 May 2018 08:31:07 +0000
(11:31 +0300)
committer
Alexey 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
patch
|
blob
|
history
diff --git
a/arch/arc/lib/reset.c
b/arch/arc/lib/reset.c
index 40fb0f1fbd10d5a77b959f03f6d93ecd1051c982..fe38c51bff9395dfc0023d9c446b3c8b94a1dd47 100644
(file)
--- 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;
}