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

Commit 6b5eace2 authored by Robin Getz's avatar Robin Getz Committed by Bryan Wu
Browse files

[Blackfin] arch: Don't oops_in_progress if single step is comming from the kernel



Don't oops_in_progress if single step is comming from the
kernel, which happens if a single step occurs after a exception cause.
This fixes up the remaining issues in the toolchain bug.

Signed-off-by: default avatarRobin Getz <robin.getz@analog.com>
Signed-off-by: default avatarBryan Wu <bryan.wu@analog.com>
parent a546b0ac
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -201,9 +201,9 @@ asmlinkage void trap_c(struct pt_regs *fp)
	/* TODO: check to see if we are in some sort of deferred HWERR
	 * that we should be able to recover from, not kernel panic
	 */
	if ((bfin_read_IPEND() & 0xFFC0)
	if ((bfin_read_IPEND() & 0xFFC0) && (trapnr != VEC_STEP)
#ifdef CONFIG_KGDB
		&& trapnr != VEC_EXCPT02
		&& (trapnr != VEC_EXCPT02)
#endif
	){
		console_verbose();