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

Commit bca0fb86 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky
Browse files

[S390] Add oops_enter()/oops_exit() calls to die().



This is mainly to switch off all potentially debugging stuff that
won't report anything useful after an oops happened.
Besided that setting pause_on_oops will work too, but doesn't make
too much sense on s390.

Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 0fc9bbf7
Loading
Loading
Loading
Loading
+5 −3
Original line number Original line Diff line number Diff line
@@ -253,6 +253,7 @@ void die(const char * str, struct pt_regs * regs, long err)
{
{
	static int die_counter;
	static int die_counter;


	oops_enter();
	debug_stop_all();
	debug_stop_all();
	console_verbose();
	console_verbose();
	spin_lock_irq(&die_lock);
	spin_lock_irq(&die_lock);
@@ -266,6 +267,7 @@ void die(const char * str, struct pt_regs * regs, long err)
		panic("Fatal exception in interrupt");
		panic("Fatal exception in interrupt");
	if (panic_on_oops)
	if (panic_on_oops)
		panic("Fatal exception: panic_on_oops");
		panic("Fatal exception: panic_on_oops");
	oops_exit();
	do_exit(SIGSEGV);
	do_exit(SIGSEGV);
}
}