Changeset 0abc2ae in mainline for kernel/arch/mips32


Ignore:
Timestamp:
2018-08-13T00:11:39Z (7 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.

Location:
kernel/arch/mips32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/include/arch/barrier.h

    r05882233 r0abc2ae  
    4848#ifdef KERNEL
    4949
    50 #define smc_coherence(a)
    51 #define smc_coherence_block(a, l)
     50#define smc_coherence(a, l)
    5251
    5352#endif  /* KERNEL */
  • 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)) {
  • kernel/arch/mips32/src/mips32.c

    r05882233 r0abc2ae  
    121121        /* Copy the exception vectors to the right places */
    122122        memcpy(TLB_EXC, (char *) tlb_refill_entry, EXCEPTION_JUMP_SIZE);
    123         smc_coherence_block(TLB_EXC, EXCEPTION_JUMP_SIZE);
     123        smc_coherence(TLB_EXC, EXCEPTION_JUMP_SIZE);
    124124        memcpy(NORM_EXC, (char *) exception_entry, EXCEPTION_JUMP_SIZE);
    125         smc_coherence_block(NORM_EXC, EXCEPTION_JUMP_SIZE);
     125        smc_coherence(NORM_EXC, EXCEPTION_JUMP_SIZE);
    126126        memcpy(CACHE_EXC, (char *) cache_error_entry, EXCEPTION_JUMP_SIZE);
    127         smc_coherence_block(CACHE_EXC, EXCEPTION_JUMP_SIZE);
     127        smc_coherence(CACHE_EXC, EXCEPTION_JUMP_SIZE);
    128128
    129129        /*
Note: See TracChangeset for help on using the changeset viewer.