diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2017-10-09 21:59:32 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-10-22 12:08:31 +0200 |
commit | 90d6473747b289739b435d5fa6ae8e38ae2921d1 (patch) | |
tree | dcb3dc6e967c8a3547f50c75c4b9f8f6792cbb07 /arch/powerpc/xmon | |
parent | deed2ec5a786f037b00136792e08404c84ec557a (diff) | |
download | op-kernel-dev-90d6473747b289739b435d5fa6ae8e38ae2921d1.zip op-kernel-dev-90d6473747b289739b435d5fa6ae8e38ae2921d1.tar.gz |
powerpc/xmon: Add kstack base to paca dump
When dumping the paca in xmon we currently show kstack. Although it's
not hard it's a bit fiddly to work out what the bounds of the kernel
stack should be based on the kstack value.
To make life easier and "kstack_base" which is the base (lowest
address) of the kernel stack, eg:
kstack = 0xc0000000f1a7be30 (0x258)
kstack_base = 0xc0000000f1a78000
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/xmon')
-rw-r--r-- | arch/powerpc/xmon/xmon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index 2e2320e..83e7faf 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -2384,6 +2384,7 @@ static void dump_one_paca(int cpu) #endif DUMP(p, __current, "p"); DUMP(p, kstack, "lx"); + printf(" kstack_base = 0x%016lx\n", p->kstack & ~(THREAD_SIZE - 1)); DUMP(p, stab_rr, "lx"); DUMP(p, saved_r1, "lx"); DUMP(p, trap_save, "x"); |