mipsan. K - 2016-01-04

I would like to add keyboard input feature during TBoot booting to break boot process.
When something wrong happens, to check and confirm the matter by user.

I added following functions, which come from freeBSD.

static int
comc_getchar(void)
{
    return (comc_ischar() ? INB(com_data) : -1);
}

static int
comc_ischar(void)
{
    return (inb(com_lsr) & LSR_RXRDY);
}

However, boot process never stops even I added getchar at somewhere.
Any kinds of idea would be appreciated!

Modified:
I'm using USB keyboard.

 

Last edit: mipsan. K 2016-01-05