All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] bug in at91rm9200 interrupt.c [udelay()] ?
@ 2005-07-20 10:04 Mirco Fuchs
  2005-07-20 11:25 ` Anders Larsen
  0 siblings, 1 reply; 5+ messages in thread
From: Mirco Fuchs @ 2005-07-20 10:04 UTC (permalink / raw)
  To: u-boot

hello,

i'm porting u-boot to the csb637 board from cogent.

I think i found a bug in the udelay (); function in file interrupt.c (at91rm9200).

Assume the following C code:

...
start = get_timer(0);

/* some code */

udelay(1500)     // delay of about 1500us
next = get_timer(start);
...

what we expect is that the value of next holds the difference between next and start in milliseconds. This works fine without the udelay() function between the get_timer() function calls. But in udelay() the global variable timestamp is reset to zero and so there is no longer any relationship between next and start. The effect will be that any time measurements will fail.

I allready looked in some other interrupt.c files, but the udelay() function is handled in a similar way.

Maybe i'm wrong with my assumption, but i don't think so. I'm very interested in your answers.


Regards

Mirco

_________________________________________________________________________
Mit der Gruppen-SMS von WEB.DE FreeMail k?nnen Sie eine SMS an alle 
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [U-Boot-Users] bug in at91rm9200 interrupt.c [udelay()] ?
@ 2005-07-20 12:52 Mirco Fuchs
  2005-07-20 13:18 ` Anders Larsen
  0 siblings, 1 reply; 5+ messages in thread
From: Mirco Fuchs @ 2005-07-20 12:52 UTC (permalink / raw)
  To: u-boot

Thank you for your fast reply,

i didn't check the list archive on csb637 because i downloaded u-boot version 1.1.2 and thought that it was the newest version available - this thought was obvioulsy wrong ...

But i did check the list now and i couldn't find any patch. The only entry i found was that there was a patch added (on 3.rd May) , but i couldn't find the patch itself.

I also browsed the CVS Repository, but it seems that there is no folder csb637 in the /board directory.

So what do i have to do to download the patch???
(Sorry if this question sounds stupid, but i'm new to this mailing list)


best regards

Mirco
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-07-20 15:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-20 10:04 [U-Boot-Users] bug in at91rm9200 interrupt.c [udelay()] ? Mirco Fuchs
2005-07-20 11:25 ` Anders Larsen
  -- strict thread matches above, loose matches on Subject: below --
2005-07-20 12:52 Mirco Fuchs
2005-07-20 13:18 ` Anders Larsen
2005-07-20 15:32   ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.