#include <oskit/x86/pc/com_cons.h>int com_cons_getchar(int port);
Read a character from the indicated serial port. If none is available, this routine loops polling the status register until a character is available.
- port
- COM port to read from. Must be 1, 2, 3 or 4.
Returns the character read.
- base_critical_enter
- 10.2.5
- base_critical_leave
- 10.2.5
- inb
- 10.3.7