Changeset 05d9dd89 in mainline for arch/ia64/include/asm.h


Ignore:
Timestamp:
2005-11-03T21:55:52Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dd118f0
Parents:
0259524
Message:

ia64 work.
Fix definition of u32.
Add more register manipulation functions.
Add unions describing bit-structured registers.
Distinguish between timer, unhandled and spurious external interrupts.
Initialize interval timer to generate first timer interrupt.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia64/include/asm.h

    r0259524 r05d9dd89  
    9393}
    9494
     95/** Read ITV (Interval Timer Vector) register.
     96 *
     97 * @return Current vector and mask bit.
     98 */
     99static inline __u64 itv_read(void)
     100{
     101        __u64 v;
     102       
     103        __asm__ volatile ("mov %0 = cr.itv\n" : "=r" (v));
     104       
     105        return v;
     106}
     107
    95108/** Write ITV (Interval Timer Vector) register.
    96109 *
    97  * @param New vector and masked bit.
     110 * @param New vector and mask bit.
    98111 */
    99112static inline void itv_write(__u64 v)
Note: See TracChangeset for help on using the changeset viewer.