u-boot-brain/cpu/at32ap
Haavard Skinnemoen a8092c021d avr32: Fix theoretical race in udelay()
If the specified delay is very short, the cycle counter may go past the
"end" time we are waiting for before we get around to reading it.

Fix it by checking the different between the cycle count "now" and the
cycle count at the beginning. This will work as long as the delay
measured in number of cycles is below 2^31.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
2008-05-27 15:27:31 +02:00
..
at32ap700x avr32: Rename pm_init() as clk_init() and make SoC-specific 2008-05-27 15:27:30 +02:00
atmel_mci.c avr32: Compile atmel_mci.o conditionally 2008-05-27 15:27:31 +02:00
atmel_mci.h atmel_mci: Use 512 byte blocksize if possible 2007-08-13 16:33:52 +02:00
cache.c Add AT32AP CPU and AT32AP7000 SoC support 2006-10-24 14:27:35 +02:00
config.mk Add AT32AP CPU and AT32AP7000 SoC support 2006-10-24 14:27:35 +02:00
cpu.c avr32: Rename pm_init() as clk_init() and make SoC-specific 2008-05-27 15:27:30 +02:00
exception.c avr32: Do stricter stack checking in the exception handler 2008-05-27 15:27:30 +02:00
hsdramc1.h AVR32: Resource management rewrite 2007-04-14 15:20:27 +02:00
hsdramc.c avr32: Rework SDRAM initialization code 2008-05-27 15:27:31 +02:00
hsmc3.h AVR32: Resource management rewrite 2007-04-14 15:20:27 +02:00
interrupts.c avr32: Fix theoretical race in udelay() 2008-05-27 15:27:31 +02:00
Makefile avr32: Compile atmel_mci.o conditionally 2008-05-27 15:27:31 +02:00
pio2.h AVR32: Resource management rewrite 2007-04-14 15:20:27 +02:00
pio.c AVR32: Resource management rewrite 2007-04-14 15:20:27 +02:00
start.S avr32: Use the same entry point for reset and exception handling 2008-05-27 15:27:30 +02:00