<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6249.1">
<TITLE>Read TCN-register in user space</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><SPAN LANG="sv"><FONT SIZE=2 FACE="Arial">I'm currently using ELDK 3.0 (kernel 2.4.25) and a mpc823e trying to do some latency measurements for my final thesis project.</FONT></SPAN></P>

<P><SPAN LANG="sv"><FONT SIZE=2 FACE="Arial">I'm wondering if there is any possibility to read the Timer Counter Register (TCN1) in user space. I have initially used gettimeofday(), which provides sufficient resolution (usec), but I suppose that solution probably adds on some kind of unknown context-switch latency. Does anyone have a clue on how to access this in user space? Could inline assembler or perhaps mmap() do the trick (I'm using C as programming language)?.</FONT></SPAN></P>
<BR>

<P><SPAN LANG="sv"><FONT SIZE=2 FACE="Arial">Regards,</FONT></SPAN>

<BR><SPAN LANG="sv"><FONT SIZE=2 FACE="Arial">Bjorn </FONT></SPAN>
</P>
<BR>
<BR>
<BR>

</BODY>
</HTML>