<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Obtain time stamp disable (TSD) flag in user-mode in Intel® ISA Extensions</title>
    <link>https://community.intel.com/t5/Intel-ISA-Extensions/Obtain-time-stamp-disable-TSD-flag-in-user-mode/m-p/773690#M156</link>
    <description>I need to check if the rdtsc instruction is supported by the processor and the operating system. The processor part is easy been done, but I have problem to check if the operation system is supporting this in other privileges than 0.&lt;BR /&gt;&lt;BR /&gt;The general way is to read bit 2 from the control register CR4, but I cannot do this in PL3. Is there any workaround? I don't want to cause a Privileged Instruction exception.</description>
    <pubDate>Tue, 29 Mar 2011 12:54:39 GMT</pubDate>
    <dc:creator>freeze2046</dc:creator>
    <dc:date>2011-03-29T12:54:39Z</dc:date>
    <item>
      <title>Obtain time stamp disable (TSD) flag in user-mode</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Obtain-time-stamp-disable-TSD-flag-in-user-mode/m-p/773690#M156</link>
      <description>I need to check if the rdtsc instruction is supported by the processor and the operating system. The processor part is easy been done, but I have problem to check if the operation system is supporting this in other privileges than 0.&lt;BR /&gt;&lt;BR /&gt;The general way is to read bit 2 from the control register CR4, but I cannot do this in PL3. Is there any workaround? I don't want to cause a Privileged Instruction exception.</description>
      <pubDate>Tue, 29 Mar 2011 12:54:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Obtain-time-stamp-disable-TSD-flag-in-user-mode/m-p/773690#M156</guid>
      <dc:creator>freeze2046</dc:creator>
      <dc:date>2011-03-29T12:54:39Z</dc:date>
    </item>
    <item>
      <title>Obtain time stamp disable (TSD) flag in user-mode</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Obtain-time-stamp-disable-TSD-flag-in-user-mode/m-p/773691#M157</link>
      <description>If you are on Linux, you can use something like the following:&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDBOOL.H&gt;&lt;BR /&gt;#include &lt;LINUX&gt;&lt;BR /&gt;&lt;BR /&gt;bool&lt;BR /&gt;is_rdtsc_supported(void)&lt;BR /&gt;{&lt;BR /&gt; int tsc_supported = PR_TSC_SIGSEGV;&lt;BR /&gt;&lt;BR /&gt; if (prctl(PR_GET_TSC, &amp;amp;tsc_supported) &amp;lt; 0)&lt;BR /&gt; return false;&lt;BR /&gt;&lt;BR /&gt; return tsc_supported == PR_TSC_ENABLE;&lt;BR /&gt;}&lt;BR /&gt;&lt;/LINUX&gt;&lt;/STDBOOL.H&gt;</description>
      <pubDate>Sat, 21 May 2011 06:16:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Obtain-time-stamp-disable-TSD-flag-in-user-mode/m-p/773691#M157</guid>
      <dc:creator>Chris_Hooper</dc:creator>
      <dc:date>2011-05-21T06:16:16Z</dc:date>
    </item>
  </channel>
</rss>

