]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kernel: Print actual address of regs when oopsing
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 Dec 2017 05:33:36 +0000 (16:33 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 19 Dec 2017 02:09:40 +0000 (13:09 +1100)
commit952002037e1b19ab92e1c4a28f53d6ffa5149bf2
tree722ab1552bf89d3a2d9efbddfc2f696cf25281ba
parentc15aa5c979f85eb8e9599ff20c04b4df865df86f
powerpc/kernel: Print actual address of regs when oopsing

When we oops or otherwise call show_regs() we print the address of the
regs structure. Being able to see the address is fairly useful,
firstly to verify that the regs pointer is not completely bogus, and
secondly it allows you to dump the regs and surrounding memory with a
debugger if you have one.

In the normal case the regs will be located somewhere on the stack, so
printing their location discloses no further information than printing
the stack pointer does already.

So switch to %px and print the actual address, not the hashed value.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/process.c