Why is __adeos_irq_regs only updated when a timer IRQ is caught?
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!
张 静 kirjoitti:
Quoted 5 lines
Hi, all,
I have no idea about why
__adeos_irq_regsis 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
Re: [Adeos-main] Why is __adeos_irq_regs only updated when a timerIRQ is caught?
Yes, you are right. I've got it.
Thank you!
Jing Zhang
Quoted 4 lines
From: Heikki Lindholm <[email protected]>
To: 张 静 <[email protected]>
CC: [email protected]
Subject: Re: [Adeos-main] Why is__adeos_irq_regsonly updated when a
timerIRQ is caught?
Quoted 25 lines
Date: Mon, 12 Dec 2005 11:11:04 +0200
张 静 kirjoitti:
Quoted 5 lines
Hi, all,
I have no idea about why
__adeos_irq_regsis 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
[email protected]
https://mail.gna.org/listinfo/adeos-main