[Top] [All Lists]

Re: kgdb and Linux/MIPS

Subject: Re: kgdb and Linux/MIPS
From: Ralf Baechle <>
Date: Sun, 3 Sep 1995 02:35:15 +0200 (MET DST)
In-reply-to: <> from "Andreas Busse" at Sep 2, 95 01:04:32 pm

>  > 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.


<Prev in Thread] Current Thread [Next in Thread>