Subject: Re: saving regs in mips?_SystemCall
To: Chris G. Demetriou <cgd@sibyte.com>
From: Jeff Smith <jeffs@geocast.com>
List: port-mips
Date: 09/12/2000 23:49:50
"Chris G. Demetriou" wrote:
>
> So, I was reading locore_mips?.S.
>
> I noticed that mips?_SystemCall saves the (caller-saved) t* regs.
>
> If the situation is the same as on alpha, registers which pass syscall
> arguments (looks like v0 and the a* regs) must be saved-restored, but
> other caller-saved regs don't have to be (which means t* and probably
> v1 and at).
I've finally gottend around to commiting a change for this. I've
only not saved the t* registers. v1 is used in syscall(), although
I don't know what the code is really trying to do.
$at is still saved. It looks safe not to save it, but I chickened
out for now.
Let me know if there are any problems.
jeffs