diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-04-28 22:29:07 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-04-28 22:29:07 +0000 |
commit | 314f8beeaa64def1cbf5aa7240d9f5722b7cefb5 (patch) | |
tree | 0afb70c267bbc381c8221e7a1b92b33c9c5ba932 /sys | |
parent | 036af1b47da51d1ea17441bfc241f6d0a9ddb727 (diff) |
rnd driver needs i586 counter too.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/i386/microtime.s | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/microtime.s b/sys/arch/i386/i386/microtime.s index c3ebff8c3f6..c033d58bd68 100644 --- a/sys/arch/i386/i386/microtime.s +++ b/sys/arch/i386/i386/microtime.s @@ -1,4 +1,4 @@ -/* $OpenBSD: microtime.s,v 1.5 1996/04/28 21:11:19 tholo Exp $ */ +/* $OpenBSD: microtime.s,v 1.6 1996/04/28 22:29:06 mickey Exp $ */ /* $NetBSD: microtime.s,v 1.16 1995/04/17 12:06:47 cgd Exp $ */ /*- @@ -37,6 +37,7 @@ #include <machine/asm.h> #include <dev/isa/isareg.h> #include <i386/isa/timerreg.h> +#include "rnd.h" #define IRQ_BIT(irq_num) (1 << ((irq_num) % 8)) #define IRQ_BYTE(irq_num) ((irq_num) / 8) @@ -48,7 +49,7 @@ #ifndef HZ ENTRY(microtime) -#if defined(I586_CPU) && defined(NTP) +#if defined(I586_CPU) && (defined(NTP) || NRND) movl _pentium_mhz, %ecx testl %ecx, %ecx jne pentium_microtime @@ -138,7 +139,7 @@ common_microtime: ret -#if defined(I586_CPU) && defined(NTP) +#if defined(I586_CPU) && (defined(NTP) || NRND) .align 2, 0x90 pentium_microtime: cli |