Changeset 0abc2ae in mainline for kernel/arch/mips32/src/debugger.c


Ignore:
Timestamp:
2018-08-13T00:11:39Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f34d2be
Parents:
05882233
Message:

Remove single-argument version of smc_coherence.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/debugger.c

    r05882233 r0abc2ae  
    213213        /* Set breakpoint */
    214214        *((sysarg_t *) cur->address) = 0x0d;
    215         smc_coherence(cur->address);
     215        smc_coherence(cur->address, 4);
    216216
    217217        irq_spinlock_unlock(&bkpoint_lock, true);
     
    246246
    247247        ((uint32_t *) cur->address)[0] = cur->instruction;
    248         smc_coherence(((uint32_t *) cur->address)[0]);
     248        smc_coherence(((uint32_t *) cur->address)[0], 4);
    249249        ((uint32_t *) cur->address)[1] = cur->nextinstruction;
    250         smc_coherence(((uint32_t *) cur->address)[1]);
     250        smc_coherence(((uint32_t *) cur->address)[1], 4);
    251251
    252252        cur->address = (uintptr_t) NULL;
     
    358358                        /* Set breakpoint on first instruction */
    359359                        ((uint32_t *) cur->address)[0] = 0x0d;
    360                         smc_coherence(((uint32_t *)cur->address)[0]);
     360                        smc_coherence(((uint32_t *)cur->address)[0], 4);
    361361
    362362                        /* Return back the second */
    363363                        ((uint32_t *) cur->address)[1] = cur->nextinstruction;
    364                         smc_coherence(((uint32_t *) cur->address)[1]);
     364                        smc_coherence(((uint32_t *) cur->address)[1], 4);
    365365
    366366                        cur->flags &= ~BKPOINT_REINST;
     
    380380                /* Return first instruction back */
    381381                ((uint32_t *)cur->address)[0] = cur->instruction;
    382                 smc_coherence(cur->address);
     382                smc_coherence(cur->address, 4);
    383383
    384384                if (!(cur->flags & BKPOINT_ONESHOT)) {
Note: See TracChangeset for help on using the changeset viewer.