Re: [PATCH 3/3] IRQ: Maintain regs pointer globally rather than passing to IRQ handlers



Ingo Molnar <mingo@xxxxxxx> wrote:

i agree that we should do this in one go and in Linus' tree. I suspect
David has a script for this, so we can do it anytime for any tree,
right?

I wish. No, it's not simple enough to script. All the usages of struct
pt_regs have to be eyeballed and have to be poked with the compiler. The
problem is when an interrupt handler passes regs down to someone else - that I
can't find.

However, I'm now in a position that I can just keep pulling Linus's GIT tree
with StGIT and fixing up the wibbly bits and grepping for new instances of
pt_regs and of course compile testing on a bunch of arches for which I have
compilers.

the amount of code that truly relies on regs being present is very low.

The same goes for the IRQ number itself too. Very few things actually use
that, mostly they just use the arbitrary data argument. I'm not sure we want
to do the same to that, though, since it makes cascaded PIC processing more
interesting as the IRQ number changes.

David

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Validation
    ... Yeah, I can see the simplicity advantage in script coding, but the ... In order to avoid obfuscating the data model with global validation ... A side effect of splitting it into a separate tree is that I have to ...
    (comp.databases.filemaker)
  • Re: give me some tips
    ... as you can state really deep problems on a sheet of paper within ... I'm not sure exactly where I can use it in a compiler. ... If you introduce an intermediate representation, ... e.g. a tree; if you compile on a translation unit by translation ...
    (comp.lang.c)
  • Re: Bash 2.05 and SCO OpenServer 5.0.6
    ... > compiler (I've spent many hours researching, changing assemblers, ... I doubt you really need bash. ... I have not seen a script that didn't work in ksh with only the ... You can even copy the .kshrc and .profile ...
    (comp.unix.sco.misc)
  • Re: tile treeview column numbers and resizing
    ... It's the column where 'abc' is displayed in the script below. ... To deal with this I tried to resize the first ... column but as mentioned above the tree widget column 0 seems to be the ... Also a line wrap option would be good. ...
    (comp.lang.tcl)
  • IFC 7.1 GenuineIntel check: workaround
    ... to modify this script to do that. ... # A short program to patch the 'libirc.a' file from the Intel Fortran Compiler ... Some versions of the Intel Fortran Compiler produce code which checks whether ...
    (comp.lang.fortran)