<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
both correct. However, you can usually access the BIOS at boot time.
The CPU core frequency is not going to change (unless you do DFS, clock
gating, etc).<br>
Only thing left on PC style architecture is that the BIOS might decide
to scale down regardless, if it deems the CPU is getting too hot.<br>
<br>
Stefan.<br>
<br>
Frank Kaiser wrote:
<blockquote
cite="mid:026691588FEC5D48AE1A8857256F656A0644E3@os-s03.open-synergy.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<title>Stefan email sig</title>
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.E-MailFormatvorlage18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#002060;}
p.parstyle, li.parstyle, div.parstyle
        {mso-style-name:parstyle;
        margin:0cm;
        margin-bottom:.0001pt;
        line-height:10.2pt;
        font-size:9.0pt;
        font-family:"Verdana","sans-serif";
        color:black;}
p.stress, li.stress, div.stress
        {mso-style-name:stress;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        mso-line-height-alt:10.85pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:#2E4096;
        font-weight:bold;}
p.nostress, li.nostress, div.nostress
        {mso-style-name:nostress;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:#777574;}
p.highlight, li.highlight, div.highlight
        {mso-style-name:highlight;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:#2E4096;
        font-weight:bold;}
span.parstyle1
        {mso-style-name:parstyle1;
        font-family:"Verdana","sans-serif";
        letter-spacing:0pt;
        font-weight:normal;
        font-style:normal;}
span.stress1
        {mso-style-name:stress1;
        color:#2E4096;
        font-weight:bold;}
span.nostress1
        {mso-style-name:nostress1;
        color:#777574;}
span.highlight1
        {mso-style-name:highlight1;
        color:#2E4096;
        font-weight:bold;}
span.E-MailFormatvorlage27
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#002060;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="Section1">
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(0, 32, 96);"
lang="EN-US">XScale is not a x86/IA32 architecture.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(0, 32, 96);"
lang="EN-US">On a system running OKL4 you cannot access any BIOS
functions, because
they are all real mode implementations while OKL4 is running in
protected mode.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(0, 32, 96);"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(0, 32, 96);"
lang="EN-US">Frank<o:p></o:p></span></p>
<div
style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0cm 0cm 0cm 4pt;">
<div>
<div
style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">From:</span></b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:developer-bounces@okl4.org">developer-bounces@okl4.org</a>
[<a class="moz-txt-link-freetext" href="mailto:developer-bounces@okl4.org">mailto:developer-bounces@okl4.org</a>] <b>On Behalf Of </b>Stefan M.
Petters<br>
<b>Sent:</b> Thursday, January 07, 2010 10:58 AM<br>
<b>To:</b> Frank Kaiser<br>
<b>Cc:</b> Peter Nguyen; developer<br>
<b>Subject:</b> Re: [okl4-developer] PMCs<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi,<br>
<br>
Frank Kaiser wrote: <o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(0, 32, 96);">Hello</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(0, 32, 96);"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(0, 32, 96);"
lang="EN-US">Most of modern x86 processors provide the TSC for
performance
monitoring. According to what I remember from INTEL’s x86 architecture
documentation it is guaranteed that the TSC will not overflow within 10
years.
This is far beyond a system’s uninterrupted operating time, therefore I
see no
reason for an overflow interrupt etc.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(0, 32, 96);"
lang="EN-US">The common approach is to read and store the TSC at a
tracepoint
and calculate time differences between associated tracepoints. The main
difficulty is to determine the absolute timebase, because this is
highly
dependent on the specific CPU and chipset in use, and on the system’s
clocking.</span><o:p></o:p></p>
<p class="MsoNormal">TSCs count CPU core clock cycles. So it becomes
somewhat
iffy when you start frequency scaling. On some XScale processors you
have the
option of saving power by gating the core clock. IIRC that means also
the TSC
will be halted.<br>
Unless you do the energy saving thing, it becomes pretty trivial to
find out
the core CPU frequency.<br>
Under Linux <br>
cat /proc/cpuinfo<br>
will tell you and BIOS usually also does.<br>
On Windows you can look up the System info.<br>
<br>
Regards,<br>
Stefan.<o:p></o:p></p>
<div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<p class="MsoNormal"><span class="stress1"><span
style="font-size: 9pt; font-family: "Verdana","sans-serif";">Stefan M.
Petters</span></span><span
style="font-size: 9pt; font-family: "Verdana","sans-serif";"><br>
</span><span class="nostress1"><span
style="font-size: 9pt; font-family: "Verdana","sans-serif";">CISTER
Research Unit</span></span><span
style="font-size: 9pt; font-family: "Verdana","sans-serif";"><br>
<span class="parstyle1"> </span><br>
</span><span class="highlight1"><span
style="font-size: 9pt; font-family: "Verdana","sans-serif";">ISEP
- IPP</span></span><span class="parstyle1"><span style="font-size: 9pt;">
| Rua
Dr. António Bernardino de Almeida 431</span></span><span
style="font-size: 9pt; font-family: "Verdana","sans-serif";"><br>
<span class="parstyle1">4200-072 Porto | Portugal </span><br>
<span class="parstyle1">T +351 22 83 40 529 | <a
moz-do-not-send="true"
href="http://www.cister.isep.ipp.pt/people/stefan+m%2E+petters">Homepage</a>
</span></span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<title>Stefan email sig</title>
<meta http-equiv="Content-Type" content="text/html; ">
<style type="text/css"><!--
.parstyle {margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; padding-top:0px; padding-bottom:0px; text-indent:0px; text-align:left; word-spacing:0.00em; letter-spacing:0.00em; font-family:Verdana, Arial, Helvetica, sans-serif; font-style:normal; font-weight:normal; font-size:13px; line-height:15px; }
.stress {color:#2E4096; font-weight:bold; line-height:16px; }
.nostress {color:#777574; }
.highlight {color:#2E4096; font-weight:bold; }
a {color:#2E4096; }
-->
</style>
<div> <span class="parstyle"> <span class="stress">Stefan M. Petters</span><br>
<span class="nostress">CISTER Research Unit</span><br>
<br>
<span class="highlight">ISEP - IPP</span> | Rua Dr. António Bernardino
de Almeida 431<br>
4200-072 Porto | Portugal <br>
T +351 22 83 40 529 | <a
href="http://www.cister.isep.ipp.pt/people/stefan+m%2E+petters">Homepage</a>
</span>
</div>
</div>
</body>
</html>