This is the mail archive of the
mailing list for the eCos project.
isr-tables in hal/pxa2x0
- From: "Daniel Schmidt" <Daniel dot Schmidt3 at gmx dot de>
- To: ecos-discuss at sources dot redhat dot com
- Date: Thu, 5 Aug 2004 17:05:04 +0200 (MEST)
- Subject: [ECOS] isr-tables in hal/pxa2x0
I've some problems with the pxa2x0 architecture, actually I've tried to
attach an ISR to GPIO73. This fails with "ASSERT FAIL: <1>void
Cyg_Interrupt::attach() Interrupt vector not free."
but this is not true, because there is no code that adds this interrupt.
I've found, that the table interrupt tables are to short (only 105
entries) but GPIO73=105 so it is in this table the entry 106.
In pxa2x0/current/include/hal_var_ints.h there is the define:
#define CYGNUM_HAL_ISR_COUNT (CYGNUM_HAL_ISR_MAX-CYGNUM_HAL_ISR_MIN+1)
in my opinion this should be:
(A) #define CYGNUM_HAL_ISR_COUNT (CYGNUM_HAL_ISR_MAX+1)
(B) in hal/arm/arch/current/include/hal_intr.h
the macro: HAL_TRANSLATE_VECTOR should substract CYGNUM_HAL_ISR_MIN
(C) should the pxa2x0/current/include/hal_var_ints.h have it's own
for me I've done version A; it's working fine.
NEU: WLAN-Router für 0,- EUR* - auch für DSL-Wechsler!
GMX DSL = supergünstig & kabellos http://www.gmx.net/de/go/dsl
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss