Re: NewQ: Difference between an isr and a subroutine is that an isr has no arguments



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.

--
Grant Edwards grante Yow! A can of ASPARAGUS,
at 73 pigeons, some LIVE ammo,
visi.com and a FROZEN DAQUIRI!!
.



Relevant Pages

  • [PATCH] radeonfb: fix typo
    ... This structure contains the various registers manipulated by this ... At this point, interrupts are off ... * on some machines that support that mechanism. ...
    (Linux-Kernel)
  • Re: [RFC] full suspend/resume support for i915 DRM driver
    ... There's some #if 0'd code to support that case, ... * This is the number of cycles out of the backlight modulation cycle for which ... * UDI pixel divider, controlling how many pixels are stuffed into a packet. ... * 855 scratch registers. ...
    (Linux-Kernel)
  • Re: [PATCH] Added driver for ISL29003 ambient light sensor
    ... i2c_board_info array of the board support file, ... For now the driver sensibly ignores them ... It's not even necessary to do that - the driver can access all registers ... control registers and hence any caching method has to be very careful ...
    (Linux-Kernel)
  • [PATCH 6/11] 2.6.17-rc5 perfmon2 patch for review: new i386 files
    ... * context is locked and interrupts are masked. ... PMU interrupt is masked. ... PMC and PMD registers are live in PMU. ...
    (Linux-Kernel)
  • Re: status of quadruple precision arithmetic in g95 and gfortran?
    ... information about the "alignment requirements for efficiency", i.e., ... registers? ... it follows an exerpt from AMD64 architecture ... Few Fortran compilers support this format, in spite of it being supported in nearly all C compilers for linux. ...
    (comp.lang.fortran)