summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorVincent Chen <vincent.chen@sifive.com>2019-09-23 03:45:14 +0300
committerPaul Walmsley <paul.walmsley@sifive.com>2019-10-07 22:59:40 +0300
commit8b04825ed205da38754f86f4c07ea8600d8c2a65 (patch)
treeb3001866a4a5e2344344e9864ad80a0fa9904da5 /ipc
parentda0c9ea146cbe92b832f1b0f694840ea8eb33cce (diff)
downloadlinux-8b04825ed205da38754f86f4c07ea8600d8c2a65.tar.xz
riscv: avoid kernel hangs when trapped in BUG()
When the CONFIG_GENERIC_BUG is disabled by disabling CONFIG_BUG, if a kernel thread is trapped by BUG(), the whole system will be in the loop that infinitely handles the ebreak exception instead of entering the die function. To fix this problem, the do_trap_break() will always call the die() to deal with the break exception as the type of break is BUG_TRAP_TYPE_BUG. Signed-off-by: Vincent Chen <vincent.chen@sifive.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions