Re: sparc implementation

From: Paul H. Hargrove (PHHargrove_at_lbl_dot_gov)
Date: Tue Sep 02 2008 - 13:02:03 PDT

  • Next message: Adolfo J. Banchio: "blcr 0.7.3: core dump file"
    Robby,
    
    I believe the correct incantation is
        regs->u_regs[UREG_FP]
    This is based on examination of linux-2.6.22/include/asm-sparc/ptrace.h, 
    and verification against code in linux-2.6.22/arch/sparc/kernel/signal.c 
    which needs to get the stack/frame pointer.
    
    However, after a quick look I do believe that get_stack_pointer() in 
    cr_arch.h is no longer used.  So, you could probably leave it out entirely.
    
    -Paul
    
    Vincentius Robby wrote:
    > Hello,
    >
    > I have a small particular question about sparc stack pointers.
    > In cr_module/arch/*/cr_arch.h, for different architecture there seems 
    > to be different methods of obtaining the stack pointers, such as 
    > regs->sp (i386), regs->gpr[1] (ppc), and regs->ARM_sp (arm). Is there 
    > a different method for sparc to obtain the stack pointer? 
    > regs->sp/regs->o6 does not seem to solve it.
    >
    > Thank you.
    >
    
    
    -- 
    Paul H. Hargrove                          PHHargrove_at_lbl_dot_gov
    Future Technologies Group                 
    HPC Research Department                   Tel: +1-510-495-2352
    Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900
    

  • Next message: Adolfo J. Banchio: "blcr 0.7.3: core dump file"