From d954a122f70727d5af104118862de0545e9c4892 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Mon, 22 Jan 2007 15:15:30 +0000 Subject: [PATCH] Added register clobber warning to read_tsc. --- kernel/arch/i386/klib386.s | 1 + 1 file changed, 1 insertion(+) 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