linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* r13 is non-volatile?
@ 2005-09-08 16:28 Kumar Gala
  2005-09-08 17:01 ` Segher Boessenkool
  0 siblings, 1 reply; 5+ messages in thread
From: Kumar Gala @ 2005-09-08 16:28 UTC (permalink / raw)
  To: linuxppc-dev list, ppc64-dev

Was looking at merging some code between ppc32 & ppc64 and noticed  
that in ppc32 we consider r13 to be part of the non-volatile register  
set.  Is this really correct?

r13 is suppose to be sdata pointer in ppc32 and system thread id in  
ppc64.  So I'm wondering should we really be considering it NV on ppc32?


PPC32:

#define SAVE_NVGPRS(base)       SAVE_GPR(13, base); SAVE_8GPRS(14,  
base); \
                                 SAVE_10GPRS(22, base)
#define REST_NVGPRS(base)       REST_GPR(13, base); REST_8GPRS(14,  
base); \
                                 REST_10GPRS(22, base)

PPC64:
#define SAVE_NVGPRS(base)       SAVE_8GPRS(14, base); SAVE_10GPRS(22,  
base)
#define REST_NVGPRS(base)       REST_8GPRS(14, base); REST_10GPRS(22,  
base)

- kumar

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-09-09  1:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-08 16:28 r13 is non-volatile? Kumar Gala
2005-09-08 17:01 ` Segher Boessenkool
2005-09-08 19:30   ` linas
2005-09-08 21:53     ` Benjamin Herrenschmidt
2005-09-09  1:30       ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).