Rev 665 | Rev 883 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 665 | Rev 873 | ||
---|---|---|---|
Line 234... | Line 234... | ||
234 | __asm__ volatile ("rdpr %%tba, %0\n" : "=r" (v)); |
234 | __asm__ volatile ("rdpr %%tba, %0\n" : "=r" (v)); |
235 | 235 | ||
236 | return v; |
236 | return v; |
237 | } |
237 | } |
238 | 238 | ||
- | 239 | /** Read Trap Program Counter register. |
|
- | 240 | * |
|
- | 241 | * @return Current value in TPC. |
|
- | 242 | */ |
|
- | 243 | static inline __u64 tpc_read(void) |
|
- | 244 | { |
|
- | 245 | __u64 v; |
|
- | 246 | ||
- | 247 | __asm__ volatile ("rdpr %%tpc, %0\n" : "=r" (v)); |
|
- | 248 | ||
- | 249 | return v; |
|
- | 250 | } |
|
- | 251 | ||
- | 252 | ||
239 | /** Write Trap Base Address register. |
253 | /** Write Trap Base Address register. |
240 | * |
254 | * |
241 | * @param New value of TBA. |
255 | * @param New value of TBA. |
242 | */ |
256 | */ |
243 | static inline void tba_write(__u64 v) |
257 | static inline void tba_write(__u64 v) |