diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2021-11-29 07:41:17 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-11-30 11:39:58 +0100 |
commit | f2dd8896846757829fb3033f41b89be3fc037d78 (patch) | |
tree | 783adcb1adf0497b7fbbe72ffe9461aefbed94b1 /arch/riscv | |
parent | 6e0ea3e7efb41c29563f8b471efd76baa8e5418f (diff) | |
download | barebox-f2dd8896846757829fb3033f41b89be3fc037d78.tar.gz barebox-f2dd8896846757829fb3033f41b89be3fc037d78.tar.xz |
RISC-V: nmon: fix SiFive DEBUG_LL build
nmon includes <debug_ll.h> in assembly source, so add __ASSEMBLY__
guards, so the build doesn't fail.
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Link: https://lore.barebox.org/20211129064117.2007757-1-ahmad@a3f.at
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/riscv')
-rw-r--r-- | arch/riscv/include/asm/debug_ll.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/include/asm/debug_ll.h b/arch/riscv/include/asm/debug_ll.h index a3b9c1c4bc..9fe7833eef 100644 --- a/arch/riscv/include/asm/debug_ll.h +++ b/arch/riscv/include/asm/debug_ll.h @@ -30,7 +30,7 @@ #include <asm/debug_ll_ns16550.h> -#elif defined CONFIG_DEBUG_SIFIVE +#elif defined CONFIG_DEBUG_SIFIVE && !defined __ASSEMBLY__ #include <io.h> |