diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2019-11-29 16:14:30 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-12-02 11:02:21 +0100 |
commit | 4af15531f6a5001e62ffed128ac3e47777880470 (patch) | |
tree | d121f67492e48368a72c9950e365494e7c46dedf /arch/arm/cpu | |
parent | 39ae48a54ec9fa471261e25413814d54db656c87 (diff) | |
download | barebox-4af15531f6a5001e62ffed128ac3e47777880470.tar.gz barebox-4af15531f6a5001e62ffed128ac3e47777880470.tar.xz |
ARM: implement CONFIG_PBL_BREAK for ARM64
ARM64 uses a different assembler mnemonic for the breakpoint.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r-- | arch/arm/cpu/common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/cpu/common.c b/arch/arm/cpu/common.c index c81b2b3791..c7d1709b8b 100644 --- a/arch/arm/cpu/common.c +++ b/arch/arm/cpu/common.c @@ -51,7 +51,11 @@ void pbl_barebox_break(void) { __asm__ __volatile__ ( #ifdef CONFIG_PBL_BREAK +#ifdef CONFIG_CPU_V8 + "brk #17\n" +#else "bkpt #17\n" +#endif "nop\n" #else "nop\n" |