summaryrefslogtreecommitdiffstats
path: root/src/core/misc.c
diff options
context:
space:
mode:
authorMichael Brown2006-08-15 00:29:51 +0200
committerMichael Brown2006-08-15 00:29:51 +0200
commit97439cb6ebb49fad9855cc975cc80fb3eb8db13b (patch)
treece5375cd5e3ac7b2fa6109fd2725293db224665f /src/core/misc.c
parentBug fixes to the HTTP protocol code (diff)
downloadipxe-97439cb6ebb49fad9855cc975cc80fb3eb8db13b.tar.gz
ipxe-97439cb6ebb49fad9855cc975cc80fb3eb8db13b.tar.xz
ipxe-97439cb6ebb49fad9855cc975cc80fb3eb8db13b.zip
Kill off poll_interruptions(); it is lethal when we're acting as a PXE
stack or INT 13 emulator etc.
Diffstat (limited to 'src/core/misc.c')
-rw-r--r--src/core/misc.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/core/misc.c b/src/core/misc.c
index d987f856..77b22659 100644
--- a/src/core/misc.c
+++ b/src/core/misc.c
@@ -73,20 +73,6 @@ int32_t random(void)
}
/**************************************************************************
-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
**************************************************************************/
void sleep(int secs)
@@ -94,7 +80,6 @@ void sleep(int secs)
unsigned long tmo;
for (tmo = currticks()+secs*TICKS_PER_SEC; currticks() < tmo; ) {
- poll_interruptions();
}
}