This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
HAL_FLASH_CACHES_XXX
- From: Jay Foster <jay at systech dot com>
- To: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Cc: 'Jay Foster' <jayfoster at ieee dot org>
- Date: Thu, 26 Jun 2003 14:15:47 -0700
- Subject: [ECOS] HAL_FLASH_CACHES_XXX
The comments for the HAL_FLASH_CACHES_ON and HAL_FLASH_CACHES_OFF macros in
flash.h state that these macros must be called with interrupts disabled.
This seems to make sense. However, code inspection reveals that they are
called with interrupts enabled. I see no interrupt disabling in
flash_dev_query(), flash_erase(), flash_program(), flash_lock() and
flash_unlock() or in the functions that call these. Am I missing something
here? It seems unlikely that if this were a real problem that it would have
gone unoticed for very long.
Jay
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss