Hi,
> > I intend to change struct pt_regs & SAVE_ALL/RESTORE_ALL anyway.
> > They really save to much on the stack. It's probably the best
> > when the remote debugging support in the kernel that you have to
> > hack anyway fakes the stack order for GDB or so. Will have to dive
> > into the internal of GDB ...
>
> What exactly do you want to leave away? I cannot imagine a single
> register that could be left away...
All the s-registers are being saved by the C compiler. It's therefore
useless work to save them on the stack. Only the switch_to() stuff
really needs to save them. And switch_to() is MUCH less often being
executed than SAVE_ALL/RESTORE_ALL.
Ralf
|