powerpc: Fix BUG_ON() reporting in real mode
authorBalbir Singh <bsingharora@gmail.com>
Thu, 18 Feb 2016 02:48:01 +0000 (13:48 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Feb 2016 09:09:04 +0000 (20:09 +1100)
commita4c3f909b4d9bb9430bf42ad583661df6dfa86c6
tree298c791fd82de132ae1ec3c0fa4144290287507d
parent10d8b1480e6966ba03cd3afad3b5d6eb5e341fae
powerpc: Fix BUG_ON() reporting in real mode

I ran into this issue while debugging an early boot problem. The system
hit a BUG_ON() but report bug failed to print the line number and file
name. The reason being that the system was running in real mode and
report_bug() searches for addresses in the PAGE_OFFSET+ region.

Suggested-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/traps.c