Changeset d78d603 in mainline for kernel/arch/sparc64/include/asm.h


Ignore:
Timestamp:
2007-01-10T13:11:28Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c738d65
Parents:
4e33b6b
Message:

Formatting and indentation fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/asm.h

    r4e33b6b rd78d603  
    266266}
    267267
     268/** Read Trap Program Counter register.
     269 *
     270 * @return Current value in TPC.
     271 */
     272static inline uint64_t tpc_read(void)
     273{
     274        uint64_t v;
     275       
     276        __asm__ volatile ("rdpr %%tpc, %0\n" : "=r" (v));
     277       
     278        return v;
     279}
     280
     281/** Read Trap Level register.
     282 *
     283 * @return Current value in TL.
     284 */
     285static inline uint64_t tl_read(void)
     286{
     287        uint64_t v;
     288       
     289        __asm__ volatile ("rdpr %%tl, %0\n" : "=r" (v));
     290       
     291        return v;
     292}
     293
    268294/** Read Trap Base Address register.
    269295 *
     
    275301       
    276302        __asm__ volatile ("rdpr %%tba, %0\n" : "=r" (v));
    277        
    278         return v;
    279 }
    280 
    281 /** Read Trap Program Counter register.
    282  *
    283  * @return Current value in TPC.
    284  */
    285 static inline uint64_t tpc_read(void)
    286 {
    287         uint64_t v;
    288        
    289         __asm__ volatile ("rdpr %%tpc, %0\n" : "=r" (v));
    290        
    291         return v;
    292 }
    293 
    294 /** Read Trap Level register.
    295  *
    296  * @return Current value in TL.
    297  */
    298 static inline uint64_t tl_read(void)
    299 {
    300         uint64_t v;
    301        
    302         __asm__ volatile ("rdpr %%tl, %0\n" : "=r" (v));
    303303       
    304304        return v;
Note: See TracChangeset for help on using the changeset viewer.