Commit 371ad016 authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

xtensa: no need to clear DEPC on C handler exit for MPU



Xtensa MPU code does not handle double exception in C. So there
is no need to clear DEPC on C handler exit.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent b696257e
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -370,15 +370,14 @@ void *xtensa_excint1_c(void *esf)
		_current_cpu->nested = 1;
	}

#if defined(CONFIG_XTENSA_MMU) || defined(CONFIG_XTENSA_MPU)
#ifdef CONFIG_USERSPACE
fixup_out:
#endif
#if defined(CONFIG_XTENSA_MMU)
	if (is_dblexc) {
		__asm__ volatile("wsr.depc %0" : : "r"(0));
	}
#endif /* CONFIG_XTENSA_MMU || CONFIG_XTENSA_MPU */

#endif /* CONFIG_XTENSA_MMU */

	return return_to(interrupted_stack);
}