]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: Add indirect stringification to csr_xxx ops
authorBin Meng <bmeng.cn@gmail.com>
Wed, 12 Dec 2018 14:12:39 +0000 (06:12 -0800)
committerAndes <uboot@andestech.com>
Tue, 18 Dec 2018 01:56:27 +0000 (09:56 +0800)
commit57fe5c64cb078c25c81cf40b5b268dc6857dc00c
tree4fa6a9062fec81a98ec795f031a62b016e570127
parentaef59e5cc450f403478f799bbb0f0647ff28a3c3
riscv: Add indirect stringification to csr_xxx ops

With current csr_xxx ops, we cannot pass a macro to parameter
'csr', hence we need add another level to allow the parameter
to be a macro itself, aka indirect stringification.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Reviewed-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/asm/csr.h