There are some big changes in the current kernel git tree that will
appear in 2.6.19-rc2.  The git kernel no longer passes struct pt_regs
around, instead there is a get_irq_regs() function to obtain the
registers as of the last interrupt.  If you have any code that passes
struct pt_regs then expect to spend some time fixing it on 2.6.19-rc2.

KDB passes pt_regs all over the place and will require lots of little
changes. I will take care of the main KDB patch, but if you maintain
any KDB patches yourself then you will have to remove struct pt_regs
from the parameter lists in your code.

Since this change affects a lot of the KDB functions, I will take this
opportunity to also remove the environment pointer from the KDB
functions.  Only a couple of KDB internal functions actually need envp
and they can get the data from a global structure.  Passing envp to
various functions is something I inherited from the previous KDB
maintainer and I was unwilling to remove it because it would break
external KDB patches.  But since the pt_regs removal must be done
anyway, removing envp is not much extra pain.

For example, before 2.6.19-rc2:

static int
kdb_ps(int argc, const char **argv, const char **envp, struct pt_regs *regs)

2.6.19-rc2 and later:

static int
kdb_ps(int argc, const char **argv)

---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.

Reply via email to