diff options
author | Chung-Ling Tang <cltang@codesourcery.com> | 2015-02-09 09:40:50 +0800 |
---|---|---|
committer | Ley Foon Tan <lftan@altera.com> | 2015-02-09 09:47:05 +0800 |
commit | a3248d609bd4514932bac291356e6a89abf259bc (patch) | |
tree | d1502b384e5b69aefeb4f485e0aff36f094c48ed /arch | |
parent | e36f014edff70fc02b3d3d79cead1d58f289332e (diff) | |
download | blackbird-obmc-linux-a3248d609bd4514932bac291356e6a89abf259bc.tar.gz blackbird-obmc-linux-a3248d609bd4514932bac291356e6a89abf259bc.zip |
nios2: fix unhandled signals
Follow other architectures for user fault handling.
Signed-off-by: Chung-Ling Tang <cltang@codesourcery.com>
Acked-by: Ley Foon Tan <lftan@altera.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/nios2/mm/fault.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/nios2/mm/fault.c b/arch/nios2/mm/fault.c index 34429d5a0ccd..d194c0427b26 100644 --- a/arch/nios2/mm/fault.c +++ b/arch/nios2/mm/fault.c @@ -159,9 +159,11 @@ bad_area: bad_area_nosemaphore: /* User mode accesses just cause a SIGSEGV */ if (user_mode(regs)) { - pr_alert("%s: unhandled page fault (%d) at 0x%08lx, " - "cause %ld\n", current->comm, SIGSEGV, address, cause); - show_regs(regs); + if (unhandled_signal(current, SIGSEGV) && printk_ratelimit()) { + pr_info("%s: unhandled page fault (%d) at 0x%08lx, " + "cause %ld\n", current->comm, SIGSEGV, address, cause); + show_regs(regs); + } _exception(SIGSEGV, regs, code, address); return; } |