summaryrefslogtreecommitdiffstats
path: root/sys/pc98/i386/microtime.s
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pc98/i386/microtime.s')
-rw-r--r--sys/pc98/i386/microtime.s10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/pc98/i386/microtime.s b/sys/pc98/i386/microtime.s
index 4731ecf..71d9d2c 100644
--- a/sys/pc98/i386/microtime.s
+++ b/sys/pc98/i386/microtime.s
@@ -32,7 +32,7 @@
* SUCH DAMAGE.
*
* from: Steve McCanne's microtime code
- * $Id: microtime.s,v 1.1.1.1 1996/06/14 10:04:41 asami Exp $
+ * $Id: microtime.s,v 1.2 1996/07/23 07:45:55 asami Exp $
*/
#include <machine/asmacros.h>
@@ -51,7 +51,7 @@
ENTRY(microtime)
#if defined(I586_CPU) || defined(I686_CPU)
- movl _i586_ctr_rate, %ecx
+ movl _i586_ctr_freq, %ecx
testl %ecx, %ecx
jne pentium_microtime
#else
@@ -256,9 +256,7 @@ pentium_microtime:
cli
.byte 0x0f, 0x31 /* RDTSC */
subl _i586_ctr_bias, %eax
- sbbl _i586_ctr_bias+4, %edx
- shldl $I586_CTR_RATE_SHIFT, %eax, %edx /* magic suggested by */
- shll $I586_CTR_RATE_SHIFT, %eax /* math_emulate.c */
- divl %ecx /* get value in usec */
+ mull _i586_ctr_multiplier
+ movl %edx, %eax
jmp common_microtime
#endif
OpenPOWER on IntegriCloud