[gPXE] Fwd: interrupt and serial

Stefan Hajnoczi stefanha at gmail.com
Tue Feb 9 14:28:42 EST 2010


On Tue, Feb 9, 2010 at 5:11 PM, Luca <lucarx76 at gmail.com> wrote:
> I could use loop if all messages have same size. But even if I'm in that
> case, if I just use a loop and for any reason I miss a character (not
> because of gPXE) then I would never exit the loop.
> For instance if I'm in a loop waiting for 40 characters but I miss 1, then
> gPXE will wait forever for the last one (without exiting the loop because I
> cannot implement a timeout mechanism).

See include/gpxe/timer.h currticks() and ticks_per_sec().  You can do a timeout.

Stefan


More information about the gPXE mailing list