mirror of
https://github.com/ipxe/ipxe
synced 2025-12-25 17:12:40 +03:00
Kill off poll_interruptions(); it is lethal when we're acting as a PXE
stack or INT 13 emulator etc.
This commit is contained in:
@@ -72,20 +72,6 @@ int32_t random(void)
|
||||
return seed;
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
POLL INTERRUPTIONS
|
||||
**************************************************************************/
|
||||
void poll_interruptions(void)
|
||||
{
|
||||
int ch;
|
||||
if ( ! as_main_program ) return;
|
||||
/* If an interruption has occured restart etherboot */
|
||||
if (iskey() && (ch = getchar(), (ch == K_ESC) || (ch == K_EOF) || (ch == K_INTR))) {
|
||||
int state = (ch != K_INTR)? -1 : -3;
|
||||
longjmp(restart_etherboot, state);
|
||||
}
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
SLEEP
|
||||
**************************************************************************/
|
||||
@@ -94,7 +80,6 @@ void sleep(int secs)
|
||||
unsigned long tmo;
|
||||
|
||||
for (tmo = currticks()+secs*TICKS_PER_SEC; currticks() < tmo; ) {
|
||||
poll_interruptions();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user