diff options
author | Tobias Diedrich <ranma+coreboot@tdiedrich.de> | 2010-06-18 20:04:16 +0000 |
---|---|---|
committer | Tobias Diedrich <ranma+coreboot@tdiedrich.de> | 2010-06-18 20:04:16 +0000 |
commit | 62622277dc2a11117605e5e7ff3d2a5f0423d8da (patch) | |
tree | 23eda87a5f80c97d24b4e41d5ffa5ebd78ae195e /firmware/target/arm/as3525 | |
parent | 94f18b1f9f84115850082d57a95997f79819287f (diff) |
With a max delay of 17 seconds before overflow happens limiting to unsigned short shouldn't be necessary.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26939 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525')
-rw-r--r-- | firmware/target/arm/as3525/system-as3525.c | 3 | ||||
-rw-r--r-- | firmware/target/arm/as3525/system-target.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c index aa98aff852..8654e61138 100644 --- a/firmware/target/arm/as3525/system-as3525.c +++ b/firmware/target/arm/as3525/system-as3525.c @@ -326,7 +326,8 @@ int system_memory_guard(int newmode) return 0; } -void udelay(unsigned short usecs) +/* usecs may be at most 2^32/248 (17 seconds) for 248MHz max cpu freq */ +void udelay(unsigned usecs) { unsigned cycles_per_usec; unsigned delay; diff --git a/firmware/target/arm/as3525/system-target.h b/firmware/target/arm/as3525/system-target.h index 90e5e3a882..e8fce197e4 100644 --- a/firmware/target/arm/as3525/system-target.h +++ b/firmware/target/arm/as3525/system-target.h @@ -49,5 +49,5 @@ extern int c200v2_variant; #define TIMER_PERIOD (KERNEL_TIMER_FREQ/HZ) #endif -void udelay(unsigned short usecs); +void udelay(unsigned usecs); #endif /* SYSTEM_TARGET_H */ |