This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
hal_delay_us() patch to at91_misc + multithreading
- From: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- To: ecos-discuss at sources dot redhat dot com
- Cc: ezeq at cc dot isel dot ipl dot pt
- Date: Wed, 08 Jun 2005 13:24:33 +0200
- Subject: [ECOS] hal_delay_us() patch to at91_misc + multithreading
Original message:
http://sourceware.org/ml/ecos-discuss/2005-05/msg00357.html
Your fix seems approperiate. Perhaps you should try to post it to
ecos-patches?
Q: As near as I can tell, HAL_DELAY_US() is not thread safe in
at91_misc.c. Is this correctly observed?
I can't tell by reading the eCos documentation whether or not
hal_delay_us or HAL_DELAY_US is supposed to be thread safe.
http://sources.redhat.com/ecos/docs-2.0/ref/hal-interrupt-handling.html
The implementation of I2C uses hal_delay_us, but since I'm not currently
using that code(our home rolled I2C code has not been phased out yet),
I'm not sure whether or not interrupts are disabled while hal_delay_us()
is invoked inside the I2C code.
--
Øyvind Harboe
http://www.zylin.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss