Fixed the serial port bug that caused a FIFO overflow in Bochs.

This commit is contained in:
2020-06-19 13:49:10 -05:00
parent 84f64badaf
commit 4c4054451c
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ void configure_serial_line(unsigned short com){
*/
int serial_transmit_fifo_empty(unsigned int com){
// 0x20 = 0010 0000
return inb((com + 5) & 0x20);
return inb(com + 5) & 0x20;
}
void write_to_com(unsigned int com, char* msg){