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

Commit 572b411c authored by Tiejun Chen's avatar Tiejun Chen Committed by Benjamin Herrenschmidt
Browse files

powerpc/kgdb: Do not set kgdb_single_step on ppc



The kgdb_single_step flag has the possibility to indefinitely
hang the system on an SMP system.

The x86 arch have the same problem, and that problem was fixed by
commit 8097551d(kgdb,x86: do not set kgdb_single_step
on x86). This patch does the same behaviors as x86's patch.

Signed-off-by: default avatarDongdong Deng <dongdong.deng@windriver.com>
Signed-off-by: default avatarJason Wessel <jason.wessel@windriver.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 46c5c59e
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -410,7 +410,6 @@ int kgdb_arch_handle_exception(int vector, int signo, int err_code,
#else
#else
			linux_regs->msr |= MSR_SE;
			linux_regs->msr |= MSR_SE;
#endif
#endif
			kgdb_single_step = 1;
			atomic_set(&kgdb_cpu_doing_single_step,
			atomic_set(&kgdb_cpu_doing_single_step,
				   raw_smp_processor_id());
				   raw_smp_processor_id());
		}
		}