This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: When to enable the IE bit of MIPS status register in eCos?
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: kjlin at aviqtech dot com
- Cc: ecos-discuss at sources dot redhat dot com
- Date: 09 Jul 2003 10:07:30 +0100
- Subject: Re: [ECOS] When to enable the IE bit of MIPS status register in eCos?
- References: <OF1DC5A5CA.991F12CB-ON48256D5E.00219829@LocalDomain>
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