]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: Report trap type as human readable string
authorHelge Deller <deller@gmx.de>
Sat, 24 Sep 2016 19:45:46 +0000 (21:45 +0200)
committerHelge Deller <deller@gmx.de>
Sat, 24 Sep 2016 19:45:46 +0000 (21:45 +0200)
commit6c4dd58de93ff2bcf5507f1b00b16c1673083a1d
tree9ff484ba4e08da9f261fccd22d1cf3767f8ad036
parent08734d7968f10e8c978c2a4a90428196d3d4ce3c
parisc: Report trap type as human readable string

When faulting on some trap, the kernel currently reports in dmesg:

 do_page_fault() command='perl' type=6 address=0xbe400403 in libcrypt-2.24.so[f9086000+9000]
 vm_start = 0x00922000, vm_end = 0x00aed000

With this change the trap type additionally gets reported as human readable
string which makes it simpler to recognize the type of problem:

 do_page_fault() command='perl' type=6 address=0xbe400403 in libcrypt-2.24.so[f9086000+9000]
 trap #6: Instruction TLB miss fault, vm_start = 0x00922000, vm_end = 0x00aed000

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/mm/fault.c