Ignore:
Timestamp:
Jun 29, 2017, 1:40:15 PM (5 years ago)
Author:
alain
Message:

hal_special: replace hal_time_stamp() by hal_get_cycles()
hal_remote : remove hal_remove_unc()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/tsar_mips32/core/hal_remote.c

    r92 r95  
    154154}
    155155
    156 ////////////////////////////////////////
    157 uint32_t hal_remote_lw_unc( xptr_t  xp )
    158 {
    159         uint32_t data;
    160     uint32_t ptr = (uint32_t)GET_PTR( xp );
    161     uint32_t cxy = (uint32_t)GET_CXY( xp );
    162 
    163     asm volatile(
    164         ".set noreorder              \n"
    165         "mfc2   $15,    $24          \n"  /* $15 <= PADDR_EXT   */
    166         "mtc2   %2,     $24          \n"  /* PADDR_EXT <= cxy   */   
    167         "ll     %0,     0(%1)        \n"  /* data <= *paddr     */
    168         "mtc2   $15,    $24          \n"  /* PADDR_EXT <= $15   */   
    169         ".set reorder                \n"
    170         : "=r" (data) : "r" (ptr), "r" (cxy) : "$15" );
    171 
    172         return ( data );
    173 }
    174 
    175156///////////////////////////////////////////
    176157bool_t hal_remote_atomic_cas( xptr_t    xp,
Note: See TracChangeset for help on using the changeset viewer.