Fixed the serial port bug that caused a FIFO overflow in Bochs.
This commit is contained in:
+1
-1
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user