This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: interrupt_end
- From: Motoya Kurotsu <kurotsu at allied-telesis dot co dot jp>
- To: Jonathan Larmour <jlarmour at redhat dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 15 Feb 2002 11:00:14 +0900
- Subject: Re: [ECOS] interrupt_end
- References: <20020214120837.A2311@white.office1> <3C6C1222.CEB7387D@redhat.com> <20020215105404.A1391@white.office1>
On Fri, Feb 15, 2002 at 10:54:04AM +0900, Motoya Kurotsu wrote:
> hal_cpu_except_enable
So I think that the hal_cpu_except_enable is not correct.
I see the current one such like the following in arch.inc.
.macro hal_cpu_except_enable
mfc0 v0,status
la v1,0xFFFFFFF0
and v0,v0,v1 # clear EXL, ERL and IE bits
mtc0 v0,status
nop
nop
nop
.endm
I think that it should be the following:
.macro hal_cpu_except_enable
mfc0 v0,status
la v1,0xFFFFFFF9
and v0,v0,v1 # clear EXL and ERL bits
ori v0,v0,0x0001 # set IE bit
mtc0 v0,status
nop
nop
nop
.endm
As you see, the original one clears a part of KSU bit. It also needs
to be fixed, doesn't it?
Thanks,
Motoya Kurotsu
Allied Telesis K.K.
On Thu, Feb 14, 2002 at 07:38:10PM +0000, Jonathan Larmour wrote:
> Motoya Kurotsu wrote:
> >
> > Hi all,
> >
> > Is my understanding correct that the interrupt_end which is defined
> > in hal/common must be called with interrupts enabled?
> > I am seeing mips/arch/currect/src/vector.S, but I can't specify
> > where interrupt is reenabled before the interrupt_end is called
> > in default interrupt VSR.
>
> hal_cpu_except_enable
>
> Jifl
> --
> Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
> Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss