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]

Re: When to enable the IE bit of MIPS status register in eCos?


kjlin@aviqtech.com writes:

> Hi all,
> 
> I am quite new in the eCos world.
> I tried to port eCos to my MIPS platform, but i got a question.
> In what stage will the eCos kernel enable the IE bit (global interrupt
> enable) of the STATUS register?
> Or i have to do it in cyg_user_start() function by myself?
> Will it make the system unstable if i enable the IE bit early in the
> hal_platform_init() function?
> Any hints are appreciated.
> Thanks,
> 

Interrupts will get enabled when the scheduler is started. It's
actually a side-effect of loading the context of the first thread. You
should not do it yourself before this.

-- 
Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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