This is the mail archive of the
ecos-devel@sources.redhat.com
mailing list for the eCos project.
Re: Sv: cyg_drv_interrupt_create() troubles
On Fri, 2002-10-04 at 10:41, Stephen Mose Aaskov wrote:
> I have so far tracked the problem down to being triggered by Cyg_Interrupt::unmask_interrupt() while a timer interrupt is being generated.
> I have no special timer ISR installed, just letting ecos do the handling.
>
> The moment HAL_RESTORE_INTERRUPTS() have been called my board crashes with a TLB exception on store.
> All my code is running in untranslated address space, so no TLB/MMU handling should be performed.
> I therefore contribute this TLB exception to some address going bad, and thus an attempt to store something at an invalid address (in my case translated address space)
>
> In addition I can inform that my target platform does not contain any MMU functionality.
Might well be a HAL problem!
I suggest building RedBoot first, since it does not depend on
interrupts. Since You don't have any serial ports but have a NE2000, it
could be done by including the NS ethernet driver in RedBoot ( it does
not depend on HAL interrupts if configured with RedBoot) and cloning the
host part (perhaps using only the 8 bit mode, to avoid endian problems),
which is different for different target platform.
That way You would gain the GDB functionality to have a look at the
interrupt problem later.
iz