Changeset 32984


Ignore:
Timestamp:
Aug 2, 2017, 12:05:34 PM (3 weeks ago)
Author:
brainslayer
Message:

for old broadcom

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/libutils/airbag.c

    r32983 r32984  
    196196#elif defined(__mips__)
    197197#define NMCTXREGS NGREG
    198 #ifdef HAVE_ADM5120
     198#if (defined(ARCH_broadcom) && !defined(HAVE_BCMMODERN)) || defined(HAVE_ADM5120)
    199199#define MCTXREG(uc, i) (uc->uc_mcontext.gpregs[i])
    200200#define MCTX_PC(uc) (uc->uc_mcontext.gpregs[35])
     
    551551        unsigned long raOffset, stackSize;
    552552
    553 #ifdef HAVE_ADM5120
     553#if (defined(ARCH_broadcom) && !defined(HAVE_BCMMODERN)) || defined(HAVE_ADM5120)
    554554        pc = (unsigned long *)uc->uc_mcontext.gpregs[35];
    555555        ra = (unsigned long *)uc->uc_mcontext.gpregs[31];
     
    571571                if (load32(addr, &v)) {
    572572                        airbag_printf("%sText at 0x%" FMTBIT "lx is not mapped; trying prior frame pointer.\n", comment, addr);
    573 #ifdef HAVE_ADM5120
     573#if (defined(ARCH_broadcom) && !defined(HAVE_BCMMODERN)) || defined(HAVE_ADM5120)
    574574                        uc->uc_mcontext.gpregs[35] = (unsigned long)ra;
    575575#else
Note: See TracChangeset for help on using the changeset viewer.