Rev 1078 | Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1078 | Rev 1488 | ||
---|---|---|---|
Line 126... | Line 126... | ||
126 | static inline void itm_write(__u64 v) |
126 | static inline void itm_write(__u64 v) |
127 | { |
127 | { |
128 | __asm__ volatile ("mov cr.itm = %0\n" : : "r" (v)); |
128 | __asm__ volatile ("mov cr.itm = %0\n" : : "r" (v)); |
129 | } |
129 | } |
130 | 130 | ||
- | 131 | /** Read ITM (Interval Timer Match) register. |
|
- | 132 | * |
|
- | 133 | * @return Match value. |
|
- | 134 | */ |
|
- | 135 | static inline __u64 itm_read(void) |
|
- | 136 | { |
|
- | 137 | __u64 v; |
|
- | 138 | ||
- | 139 | __asm__ volatile ("mov %0 = cr.itm\n" : "=r" (v)); |
|
- | 140 | ||
- | 141 | return v; |
|
- | 142 | } |
|
- | 143 | ||
131 | /** Read ITV (Interval Timer Vector) register. |
144 | /** Read ITV (Interval Timer Vector) register. |
132 | * |
145 | * |
133 | * @return Current vector and mask bit. |
146 | * @return Current vector and mask bit. |
134 | */ |
147 | */ |
135 | static inline __u64 itv_read(void) |
148 | static inline __u64 itv_read(void) |