]> Zhao Yanbai Git Server - minix.git/commitdiff
Added register clobber warning to read_tsc.
authorBen Gras <ben@minix3.org>
Mon, 22 Jan 2007 15:15:30 +0000 (15:15 +0000)
committerBen Gras <ben@minix3.org>
Mon, 22 Jan 2007 15:15:30 +0000 (15:15 +0000)
kernel/arch/i386/klib386.s

index a8bbd1867426025f33058a3b930662b407ce1850..04aa8587e5a79df92965dd18ab1f7f7c270f3467 100755 (executable)
@@ -552,6 +552,7 @@ _level0:
 !*===========================================================================*
 ! PUBLIC void read_tsc(unsigned long *high, unsigned long *low);
 ! Read the cycle counter of the CPU. Pentium and up. 
+! This function clobbers edx and eax.
 .align 16
 _read_tsc:
 .data1 0x0f            ! this is the RDTSC instruction