This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

isr-tables in hal/pxa2x0


hello,  
  
I've some problems with the pxa2x0 architecture, actually I've tried to  
attach an ISR to GPIO73. This fails with "ASSERT FAIL: <1>[450]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)  
 
or  
(B) in hal/arm/arch/current/include/hal_intr.h 
the macro: HAL_TRANSLATE_VECTOR should substract CYGNUM_HAL_ISR_MIN 
 
or  
(C) should the pxa2x0/current/include/hal_var_ints.h have it's own 
HAL_TRANSLATE_VECTOR ? 
 
for me I've done version A; it's working fine.  
 
bye  
daniel  
  
  
  

-- 
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]