Re: NewQ: Difference between an isr and a subroutine is that an isr has no arguments
- From: "Wilco Dijkstra" <Wilco_dot_Dijkstra@xxxxxxxxxxxx>
- Date: Tue, 28 Nov 2006 22:38:30 GMT
"Grant Edwards" <grante@xxxxxxxx> wrote in message
news:12mpcnu2arb6854@xxxxxxxxxxxxxxxxxxxxx
On 2006-11-28, Wilco Dijkstra <Wilco_dot_Dijkstra@xxxxxxxxxxxx> wrote:
The hardware could set up a few registers and the compiler
would assign parameters to those registers on functions marked
as interrupts - very easy to implement. You could ignore them if
you didn't support them.
All of the processors I've used already do that (store return
address and status information in a known location), so I guess
all that's missing is a few lines of code in the compilers.
The return address is can already be made available via an
intrinsic and many compilers support this. I was thinking more
along the lines of allowing the user not only to choose which
interrupt routine is called for a certain interrupt but also some
parameters to pass to the routine when that interrupt triggers.
It is in effect an alternative to ARM's FIQ scheme but rather than
spending lots of transistors on 7 extra registers that are hardly
used, they could be loaded for free while the CPU branches to
the handler.
Wilco
.
- References:
- Differences between interrupt service routine (ISR) and a subroutine
- From: 2005
- Re: Differences between interrupt service routine (ISR) and a subroutine
- From: Tom Lucas
- NewQ: Difference between an isr and a subroutine is that an isr has no arguments
- From: 2005
- Re: NewQ: Difference between an isr and a subroutine is that an isr has no arguments
- From: James Beck
- Re: NewQ: Difference between an isr and a subroutine is that an isr has no arguments
- From: Wilco Dijkstra
- Re: NewQ: Difference between an isr and a subroutine is that an isr has no arguments
- From: Grant Edwards
- Re: NewQ: Difference between an isr and a subroutine is that an isr has no arguments
- From: Wilco Dijkstra
- Re: NewQ: Difference between an isr and a subroutine is that an isr has no arguments
- From: Grant Edwards
- Differences between interrupt service routine (ISR) and a subroutine
- Prev by Date: Re! XCHG instruction: load register AX with a 1
- Next by Date: Re: which object orient language is most suitable for embedded programming?
- Previous by thread: Re: NewQ: Difference between an isr and a subroutine is that an isr has no arguments
- Next by thread: Re: NewQ: Difference between an isr and a subroutine is that an isr has no arguments
- Index(es):
Relevant Pages
|