* [Adeos-main] Why is __adeos_irq_regs only updated when a timer IRQ is caught?
@ 2005-12-12 8:05 张 静
2005-12-12 9:11 ` Heikki Lindholm
0 siblings, 1 reply; 3+ messages in thread
From: 张 静 @ 2005-12-12 8:05 UTC (permalink / raw)
To: adeos-main
Hi, all,
I have no idea about why __adeos_irq_regs is only updated when a timer IRQ
is caught. Does it means its value doesn't matter to other irq handlers?
I'am working on version 2.4r12 for ARM.
Below is the snippet to update the __adeos_irq_regs in __adeos_handle_irq:
if (likely(irq == ADEOS_TIMER_IRQ))
{
__adeos_irq_regs.ARM_cpsr = regs->ARM_cpsr;
__adeos_irq_regs.ARM_pc = regs->ARM_pc;
}
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Adeos-main] Why is __adeos_irq_regs only updated when a timer IRQ is caught?
2005-12-12 8:05 [Adeos-main] Why is __adeos_irq_regs only updated when a timer IRQ is caught? 张 静
@ 2005-12-12 9:11 ` Heikki Lindholm
2005-12-12 12:27 ` [Adeos-main] Why is __adeos_irq_regs only updated when a timerIRQ " Zhang Jing
0 siblings, 1 reply; 3+ messages in thread
From: Heikki Lindholm @ 2005-12-12 9:11 UTC (permalink / raw)
To: 张 静; +Cc: adeos-main
张 静 kirjoitti:
> Hi, all,
>
> I have no idea about why __adeos_irq_regs is only updated when a timer
> IRQ is caught. Does it means its value doesn't matter to other irq
> handlers? I'am working on version 2.4r12 for ARM.
If you look at the irq handlers you'll see that most don't use the regs
parameter
and there have been talks about removing it altogether from the kernel.
Also,
if you think about the irq replaying scheme of Adeos and how you would
implement
saving the regs for every (to be) replayed interrupt, maybe you'll see
the point of
doing only the necessary reg saving in Adeos.
-- Heikki Lindholm
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Adeos-main] Why is __adeos_irq_regs only updated when a timerIRQ is caught?
2005-12-12 9:11 ` Heikki Lindholm
@ 2005-12-12 12:27 ` Zhang Jing
0 siblings, 0 replies; 3+ messages in thread
From: Zhang Jing @ 2005-12-12 12:27 UTC (permalink / raw)
To: holindho; +Cc: adeos-main
Yes, you are right. I've got it.
Thank you!
Jing Zhang
>From: Heikki Lindholm <holindho@domain.hid>
>To: 张 静 <zhang_jing_bit@domain.hid>
>CC: adeos-main@gna.org
>Subject: Re: [Adeos-main] Why is __adeos_irq_regs only updated when a
timerIRQ is caught?
>Date: Mon, 12 Dec 2005 11:11:04 +0200
>
>张 静 kirjoitti:
> > Hi, all,
> >
> > I have no idea about why __adeos_irq_regs is only updated when a timer
> > IRQ is caught. Does it means its value doesn't matter to other irq
> > handlers? I'am working on version 2.4r12 for ARM.
>
>If you look at the irq handlers you'll see that most don't use the regs
>parameter
>and there have been talks about removing it altogether from the kernel.
>Also,
>if you think about the irq replaying scheme of Adeos and how you would
>implement
>saving the regs for every (to be) replayed interrupt, maybe you'll see
>the point of
>doing only the necessary reg saving in Adeos.
>
>-- Heikki Lindholm
>
>_______________________________________________
>Adeos-main mailing list
>Adeos-main@domain.hid
>https://mail.gna.org/listinfo/adeos-main
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-12-12 12:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-12 8:05 [Adeos-main] Why is __adeos_irq_regs only updated when a timer IRQ is caught? 张 静
2005-12-12 9:11 ` Heikki Lindholm
2005-12-12 12:27 ` [Adeos-main] Why is __adeos_irq_regs only updated when a timerIRQ " Zhang Jing
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.