summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-07-05 15:58:45 -0700
committerH. Peter Anvin <hpa@zytor.com>2010-07-05 15:58:45 -0700
commit275afb229201057bab9c760105ff75c3e8c108eb (patch)
tree27a9fb58119fab4736968a9bec2f43fdda7bff09
parent6afe9a37c790a58a7d7d2e955921ed0a8c9b4fee (diff)
downloadsyslinux-275afb229201057bab9c760105ff75c3e8c108eb.tar.gz
syslinux-275afb229201057bab9c760105ff75c3e8c108eb.tar.xz
syslinux-275afb229201057bab9c760105ff75c3e8c108eb.zip
ifcpu.c32: remove open-coded sleep function
Remove open-coded sleep function, which uses an unreliable BIOS call. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--com32/modules/ifcpu.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/com32/modules/ifcpu.c b/com32/modules/ifcpu.c
index cf6282f5..b455d0c3 100644
--- a/com32/modules/ifcpu.c
+++ b/com32/modules/ifcpu.c
@@ -61,18 +61,6 @@ static void usage(void)
"if you want to match many cpu features, just separate them with a single space.\n");
}
-static unsigned char sleep(unsigned int msec)
-{
- unsigned long micro = 1000 * msec;
- com32sys_t inreg, outreg;
-
- REG_AH(inreg) = 0x86;
- REG_CX(inreg) = (micro >> 16);
- REG_DX(inreg) = (micro & 0xFFFF);
- __intcall(0x15, &inreg, &outreg);
- return REG_AH(outreg);
-}
-
/* XXX: this really should be librarized */
static void boot_args(char **args)
{
@@ -172,7 +160,7 @@ int main(int argc, char *argv[])
hardware_matches ? *args[0] : *args[1]);
printf("Sleeping 5sec before booting\n");
if (!dryrun)
- sleep(5000);
+ sleep(5);
}
if (!dryrun)