Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2248fade authored by Michael Ellerman's avatar Michael Ellerman
Browse files

powerpc/xmon: Don't print hashed pointers in paca dump



Remember when the biggest problem we had to worry about was hashed
pointers, those were the days.

These were missed in my earlier patch because they don't match "%p",
but the macro is hiding a "%p", so these all end up being hashed,
which is not what we want in xmon. Convert them to "%px".

Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 274920a3
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -2344,10 +2344,10 @@ static void dump_one_paca(int cpu)
	DUMP(p, kernel_toc, "lx");
	DUMP(p, kernelbase, "lx");
	DUMP(p, kernel_msr, "lx");
	DUMP(p, emergency_sp, "p");
	DUMP(p, emergency_sp, "px");
#ifdef CONFIG_PPC_BOOK3S_64
	DUMP(p, nmi_emergency_sp, "p");
	DUMP(p, mc_emergency_sp, "p");
	DUMP(p, nmi_emergency_sp, "px");
	DUMP(p, mc_emergency_sp, "px");
	DUMP(p, in_nmi, "x");
	DUMP(p, in_mce, "x");
	DUMP(p, hmi_event_available, "x");
@@ -2382,14 +2382,14 @@ static void dump_one_paca(int cpu)
#endif
	DUMP(p, dscr_default, "llx");
#ifdef CONFIG_PPC_BOOK3E
	DUMP(p, pgd, "p");
	DUMP(p, kernel_pgd, "p");
	DUMP(p, tcd_ptr, "p");
	DUMP(p, mc_kstack, "p");
	DUMP(p, crit_kstack, "p");
	DUMP(p, dbg_kstack, "p");
	DUMP(p, pgd, "px");
	DUMP(p, kernel_pgd, "px");
	DUMP(p, tcd_ptr, "px");
	DUMP(p, mc_kstack, "px");
	DUMP(p, crit_kstack, "px");
	DUMP(p, dbg_kstack, "px");
#endif
	DUMP(p, __current, "p");
	DUMP(p, __current, "px");
	DUMP(p, kstack, "lx");
	printf(" kstack_base          = 0x%016lx\n", p->kstack & ~(THREAD_SIZE - 1));
	DUMP(p, stab_rr, "lx");
@@ -2407,7 +2407,7 @@ static void dump_one_paca(int cpu)
#endif

#ifdef CONFIG_PPC_POWERNV
	DUMP(p, core_idle_state_ptr, "p");
	DUMP(p, core_idle_state_ptr, "px");
	DUMP(p, thread_idle_state, "x");
	DUMP(p, thread_mask, "x");
	DUMP(p, subcore_sibling_mask, "x");