lkml.org 
[lkml]   [2001]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: patch: enabling RDPMC: bit 8 in CR4 (PCE)
On Thu, 18 Jan 2001, Tuukka Toivonen wrote:

> I suppose that if the CPU has MMX, then it's ok to write 1 in PCE
> bit. This should be valid for Intel CPUs, but it's certainly possible that
> there are non-Intel CPUs that have MMX but not RDPMC. However, I'd guess
> that writing 1 to PCE bit doesn't do any harm.

It's not completely OK to write 1 to cr4.pce as you get a GP fault if a
CPU does not support it. However, you may handle the exception yourself
and enable rdpmc unconditionally, i.e. with no feature test (Intel states
cr4.pce is model-specific anyway) -- hopefully no vendor overloads the
cr4.pce bit.

--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:26    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog