mm: show more information when in bad mode [1/1]
authortao zeng <tao.zeng@amlogic.com>
Wed, 17 Oct 2018 09:55:46 +0000 (17:55 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 19 Oct 2018 01:23:37 +0000 (18:23 -0700)
commit0d158ae286b16783ada00b592f18e84b9a275019
treef995259856c27b8a19f86c97b9fe8bf7b08031e5
parent17a672d3e8ee5d034a14231e09ab9b6925356c83
mm: show more information when in bad mode [1/1]

PD#154260

Problem:
When bad mode happens, no pfn/far information is printed.
It get's problems to debug.

Solution:
1. Add far as parameter for bad_mode handler
2. Show pfn of all registers for bad_mode

Verify:
Local verified.

Change-Id: I4b0b457eff44ee717094ee8056f96ff16f111139
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
arch/arm64/kernel/entry.S
arch/arm64/kernel/traps.c
arch/arm64/mm/fault.c