diff options
author | bde <bde@FreeBSD.org> | 1995-10-14 04:53:49 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-10-14 04:53:49 +0000 |
commit | dded218f3c56b2953094f7f678d48ff1389e0b6d (patch) | |
tree | 7263bddab5ef48caefc96d9b81c4442f463507ca /sys | |
parent | 349dc9727a2eac61877fa9f3118afa6a91acca76 (diff) | |
download | FreeBSD-src-dded218f3c56b2953094f7f678d48ff1389e0b6d.zip FreeBSD-src-dded218f3c56b2953094f7f678d48ff1389e0b6d.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/i386/microtime.s | 8 |
1 files changed, 4 insertions, 4 deletions
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 <machine/asmacros.h> @@ -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 |