From dded218f3c56b2953094f7f678d48ff1389e0b6d Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 14 Oct 1995 04:53:49 +0000 Subject: Restore initialization of %ecx for the !I586_CPU case. Don't declare _i586_ctr_bias. The usual style, which was followed in microtime.s, is to omit extern declarations. --- sys/i386/i386/microtime.s | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys') diff --git a/sys/i386/i386/microtime.s b/sys/i386/i386/microtime.s index ac547e6..7470c16 100644 --- a/sys/i386/i386/microtime.s +++ b/sys/i386/i386/microtime.s @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: Steve McCanne's microtime code - * $Id: microtime.s,v 1.8 1995/10/12 20:38:24 wollman Exp $ + * $Id: microtime.s,v 1.9 1995/10/13 19:53:25 wollman Exp $ */ #include @@ -46,6 +46,8 @@ ENTRY(microtime) movl _pentium_mhz, %ecx testl %ecx, %ecx jne pentium_microtime +#else + xorl %ecx, %ecx # clear ecx #endif movb $TIMER_SEL0|TIMER_LATCH, %al # prepare to latch @@ -172,8 +174,6 @@ common_microtime: ret #ifdef I586_CPU - .extern _i586_ctr_bias - ALIGN_TEXT pentium_microtime: cli @@ -182,4 +182,4 @@ pentium_microtime: sbbl _i586_ctr_bias+4, %edx divl %ecx # get value in usec jmp common_microtime -#endif /* I586_CPU */ +#endif -- cgit v1.1