[gPXE] Fwd: interrupt and serial
Luca
lucarx76 at gmail.com
Tue Feb 9 17:41:21 EST 2010
Thanks. I'll try with that.
On Tue, Feb 9, 2010 at 11:28 AM, Stefan Hajnoczi <stefanha at gmail.com> wrote:
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://etherboot.org/pipermail/gpxe/attachments/20100209/701a810b/attachment.html
More information about the gPXE
mailing list