<div>I think Decrementer runs because every time I read the DEC register (SPR 22), different value returned. </div>
<div>&nbsp;</div>
<div>In the timer_interrupt, set_dec(decrementer_count) was called to reload the value of DEC register. I also tried to change decrementer_count value to 100, and then the value of DEC register I read out will always smaller than 100 (I tried many times). if I mask the call of set_dec in timer_interrupt, then I can read out big values (such as 0xFxxxxxxx, 0xExxxxxxx) for the DEC register. From this test, I guess the timer_interrupt was called after the exception generated. But the value of timestamp always be 0. It's hard to believe since in timer_interrupt, after calling set_dec, timestamp++ should be excuted.
<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 11/14/05, <b class="gmail_sendername"><a href="mailto:bbosch@iphase.com">bbosch@iphase.com</a></b> &lt;<a href="mailto:bbosch@iphase.com">bbosch@iphase.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I don't have the data sheet in front of me at the moment, but I seem<br>to recall that the 7447 has a hardware pin which must be strapped
<br>properly to enable the decrementer.&nbsp;&nbsp;U-Boot assumes the hardware is<br>configured this way.&nbsp;&nbsp;Without the proper pull up or down resistor, the<br>decrementer just does not run.<br><br>--Brad<br><br><br>-------------------------------------------------------
<br>This SF.Net email is sponsored by the JBoss Inc.&nbsp;&nbsp;Get Certified Today<br>Register for a JBoss Training Course.&nbsp;&nbsp;Free Certification Exam<br>for All Training Attendees Through End of 2005. For more info visit:<br><a href="http://ads.osdn.com/?ad_id=7628&amp;alloc_id=16845&amp;op=click">
http://ads.osdn.com/?ad_id=7628&amp;alloc_id=16845&amp;op=click</a><br>_______________________________________________<br>U-Boot-Users mailing list<br><a href="mailto:U-Boot-Users@lists.sourceforge.net">U-Boot-Users@lists.sourceforge.net
</a><br><a href="https://lists.sourceforge.net/lists/listinfo/u-boot-users">https://lists.sourceforge.net/lists/listinfo/u-boot-users</a><br></blockquote></div><br>