lkml.org 
[lkml]   [2009]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH 07/37] kgdb,sparc: Add in kgdb_arch_set_pc for sparc
    From
    From: Jason Wessel <jason.wessel@windriver.com>
    Date: Wed, 23 Dec 2009 15:19:20 -0600

    > +void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long ip)
    > +{
    > + regs->pc = regs->npc;
    > + regs->npc = ip;
    > +}
    > +

    Is this right?

    It should probably be something like:

    > + regs->pc = ip;
    > + regs->npc = regs->pc + 4;

    and similary for sparc64.


    \
     
     \ /
      Last update: 2009-12-23 22:51    [W:3.082 / U:0.056 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site