forked from Bananymous/banan-os
				
			Kernel: Don't wait for ps2 timeout when flushing buffer
This speeds up boot time by a second :dd:
This commit is contained in:
		
							parent
							
								
									cea19ecc31
								
							
						
					
					
						commit
						aaa8760d09
					
				|  | @ -468,8 +468,8 @@ namespace Kernel::Input | ||||||
| 		TRY(send_command(PS2::Command::DISABLE_SECOND_PORT)); | 		TRY(send_command(PS2::Command::DISABLE_SECOND_PORT)); | ||||||
| 
 | 
 | ||||||
| 		// Flush The Output Buffer
 | 		// Flush The Output Buffer
 | ||||||
| 		while (!read_byte().is_error()) | 		while (IO::inb(m_command_port) & PS2::Status::OUTPUT_STATUS) | ||||||
| 			continue; | 			IO::inb(m_data_port); | ||||||
| 
 | 
 | ||||||
| 		// Set the Controller Configuration Byte
 | 		// Set the Controller Configuration Byte
 | ||||||
| 		TRY(send_command(PS2::Command::READ_CONFIG)); | 		TRY(send_command(PS2::Command::READ_CONFIG)); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue