diff options
Diffstat (limited to 'com32/modules/ifcpu.c')
-rw-r--r-- | com32/modules/ifcpu.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/com32/modules/ifcpu.c b/com32/modules/ifcpu.c index cf6282f5..ae6893b9 100644 --- a/com32/modules/ifcpu.c +++ b/com32/modules/ifcpu.c @@ -20,6 +20,7 @@ #include <stdio.h> #include <string.h> #include <cpuid.h> +#include <unistd.h> #include <syslinux/boot.h> #include <com32.h> #include <consoles.h> @@ -61,18 +62,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 +161,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) |