From: Ben Gras Date: Mon, 22 Jan 2007 15:15:30 +0000 (+0000) Subject: Added register clobber warning to read_tsc. X-Git-Tag: v3.1.3~107 X-Git-Url: http://zhaoyanbai.com/repos/%22https:/www.google.com/jsapi/static/howto.html?a=commitdiff_plain;h=d954a122f70727d5af104118862de0545e9c4892;p=minix.git Added register clobber warning to read_tsc. --- diff --git a/kernel/arch/i386/klib386.s b/kernel/arch/i386/klib386.s index a8bbd1867..04aa8587e 100755 --- a/kernel/arch/i386/klib386.s +++ b/kernel/arch/i386/klib386.s @@ -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