]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: support trap-based WARN()
authorVincent Chen <vincentc@andestech.com>
Tue, 5 Mar 2019 03:23:33 +0000 (11:23 +0800)
committerPalmer Dabbelt <palmer@sifive.com>
Fri, 17 May 2019 03:42:12 +0000 (20:42 -0700)
commitc87c3a5b01a52523ae80216d4cadf52a2209a3d3
treee965c8d0b50b578f972528461223eec442e7f299
parente9d3f553d7db3457bda5900cf77415aa010bbb6a
riscv: support trap-based WARN()

The WARN() related function will trigger a debug exception. This can help
developers to analyze the cause of WARN() because if the debugger is
connected, the control flow will be transferred to debugging
environment.

Signed-off-by: Vincent Chen <vincentc@andestech.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/include/asm/bug.h