>"Kevin P. Lawton" wrote:
>> I borrowed an inline fuction from the Linux kernel
>> to grab the Time Stamp Counter, and now time stamp
>> when the first time the prescan code sees a code
>> page, and when it last modified the meta information.
>
>This is exactly what you can't legally do if FreeMWare is LGPL.  Linux is
>GPL.  Distributing Linux under LGPL is a license violation.

Duh.  I'll rewrite it, okay ?  Here goes:

inline unsigned long long
rdtsc(void)
{
    unsigned long high, low;
    asm ( "rdtsc" : "=a" (low), "=d" (high) );
    return (((unsigned long long) high) << 32) | low;
}

Note that I'm doing this by heart, it may be that high and low need to
be turned around, but IIRC the high dword is in %edx.

PS I didn't see the linux code.  The above code snippet I hereby declare to be
LGPL.

-- Ramon



Reply via email to