This is the mail archive of the ecos-devel@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]

Sv: cyg_drv_interrupt_create() troubles


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.


- Stephen


----- Original Message ----- 
From: Iztok Zupet <iztok.zupet@vsr.si>
To: Stephen Mose Aaskov <sma@2m.dk>
Cc: eCos-devel (E-Mail) <ecos-devel@sources.redhat.com>
Sent: Thursday, October 03, 2002 5:20 PM
Subject: Re: cyg_drv_interrupt_create() troubles


On Thu, 2002-10-03 at 17:10, Jonathan Larmour wrote:
> Stephen Mose Aaskov wrote:
>  > I´m working on a port of a NE2000 driver to our platform (MIPS R3000,
>  > Davicom Eth. controller).

To ease Your work: You could use the same approach as I did for RTL8019.
I just cloned the host part of the driver, while the working  engine is
the eCos NS driver, essentially 16bit NE2000 compatible.You shouldn't
bother about interrupt functions then, all the stuff is already in the
NS driver.

If You wish to try: <http://www.vsr.si/ecos/patches/rtl8019.html>. There
You should clone only the host part (PC).

Beware, the NS driver, as it is, seems to have a bug and converts the
endian twice on a little endian machines.

Regards
iz





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