[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SPARC context switch
- Date: Fri, 6 Nov 2009 09:54:41 -0500
- From: gedare at gwu.edu (Gedare Bloom)
- Subject: SPARC context switch
Hi,
I have been studying the SPARC context switch code, and had a few
questions about some of the design choices.
1) Why aren't the floating-point save/restore functions leaf-optimized?
2) Other than %o6, which holds the stack pointer, and %o7, which
holds the return PC value, why are the %o registers saved in the
context? Since these functions are called, shouldn't they only need
to save the registers that are preserved across function calls?
3) Is g0 included in Context_Control only for alignment purposes (so
that double-word ldd/std can be used)?
I hope I don't come off as sounding critical, I'm really just curious. :)
-Gedare