| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XenPPC] performance profiling current and future steps
 On Mar 26, 2007, at 8:26 AM, Christian Ehrhardt wrote: Jimi Xenidis wrote:I need a register to clobber with my "ori". (H_) EXCEPTION_SAVE_STATE clobbers r0 anyway and it resides in all continue labels that are passed to EXCEPTION_HEAD. So PMU_SAVE_STATE can follow in its wake and clobber r0 too like EXCEPTION_SAVE_STATE.On Mar 23, 2007, at 9:07 AM, Hollis Blanchard wrote:Right, that won't fit in EXCEPTION_HEAD (you will get the assembler error messages Jimi pasted above).Yeah,So EXCEPTION_HEAD branches to a passed in label. Find all those labels and insert PMU_SAVE_STATE there.branches to EXCEPTION_HEAD:xenppc-unstable_step1/xen# cat arch/powerpc/powerpc64/ exceptions.S | grep "EXCEPTION_HEAD" | sort | uniq After EXCEPTION_SAVE_STATE r0 and r3-r12 are fair game, so yeah, r0 is fine. r1 points to your save area so I'd use "PMU_SAVE_STATE r0, r1", the macro does not save any state, but it will one day. You should also from the second argument (r1) until you have a patch that actually needs it. -JX _______________________________________________ Xen-ppc-devel mailing list Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-ppc-devel 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |