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

Commit 6142e05f authored by David Howells's avatar David Howells Committed by Linus Torvalds
Browse files

MN10300: Fix interrupt mask alteration function call name in gdbstub



Fix the name of interrupt mask alteration function (ie the
local_change_intr_mask_level() fn) called in gdbstub to have an arch_
prefix to match the definition in asm/irqflags.h.

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 81e8d216
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -73,7 +73,8 @@ void gdbstub_io_init(void)
	GDBPORT_SERIAL_IER = UART_IER_RDI | UART_IER_RLSI;
	GDBPORT_SERIAL_IER = UART_IER_RDI | UART_IER_RLSI;


	/* permit level 0 IRQs to take place */
	/* permit level 0 IRQs to take place */
	local_change_intr_mask_level(NUM2EPSW_IM(CONFIG_GDBSTUB_IRQ_LEVEL + 1));
	arch_local_change_intr_mask_level(
		NUM2EPSW_IM(CONFIG_GDBSTUB_IRQ_LEVEL + 1));
}
}


/*
/*
+2 −1
Original line number Original line Diff line number Diff line
@@ -87,7 +87,8 @@ void __init gdbstub_io_init(void)
	tmp = *gdbstub_port->_control;
	tmp = *gdbstub_port->_control;


	/* permit level 0 IRQs only */
	/* permit level 0 IRQs only */
	local_change_intr_mask_level(NUM2EPSW_IM(CONFIG_GDBSTUB_IRQ_LEVEL + 1));
	arch_local_change_intr_mask_level(
		NUM2EPSW_IM(CONFIG_GDBSTUB_IRQ_LEVEL + 1));
}
}


/*
/*
+2 −1
Original line number Original line Diff line number Diff line
@@ -1194,7 +1194,8 @@ static int gdbstub(struct pt_regs *regs, enum exception_code excep)


	asm volatile("mov mdr,%0" : "=d"(mdr));
	asm volatile("mov mdr,%0" : "=d"(mdr));
	local_save_flags(epsw);
	local_save_flags(epsw);
	local_change_intr_mask_level(NUM2EPSW_IM(CONFIG_GDBSTUB_IRQ_LEVEL + 1));
	arch_local_change_intr_mask_level(
		NUM2EPSW_IM(CONFIG_GDBSTUB_IRQ_LEVEL + 1));


	gdbstub_store_fpu();
	gdbstub_store_fpu();