Skip to content

Commit

Permalink
serial: fail on timeouts instead of retry
Browse files Browse the repository at this point in the history
The timeouts may be infinite. That could stuck forever.
  • Loading branch information
stsp committed Jul 21, 2024
1 parent 3ceb300 commit 32381d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/serial.asm
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ ComRead:
ComRd1:
call BiosRdCom
or ah,ah ; timeout?
js ComRd1 ; yes, try again
js _IOErrCnt ; yes, fail
ComRd2:
stosb
loop ComRd1
Expand Down

0 comments on commit 32381d9

Please sign in to comment.