/* register the console at a more appropriate time handle character reception on GDB serial port */
asmlinkage void gdbstub_rx_irq(struct pt_regs *regs, enum exception_code excep)
/* register the console at a more appropriate time handle character reception on GDB serial port */
asmlinkage void gdbstub_rx_irq(struct pt_regs *regs, enum exception_code excep)
{
	char ch;
	int ret;
	gdbstub_entry("--> gdbstub_rx_irq\n");
	do {
		ret = gdbstub_io_rx_char(&ch, 1);
		if (ret != -EIO && ret != -EAGAIN) {
			if (ret != -EINTR)
				gdbstub_rx_unget = ch;
			gdbstub(regs, excep);
		}
	} while (ret != -EAGAIN);
	gdbstub_entry("<-- gdbstub_rx_irq\n");
}