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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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