Rev 873 | Rev 1708 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 873 | Rev 883 | ||
---|---|---|---|
Line 247... | Line 247... | ||
247 | __asm__ volatile ("rdpr %%tpc, %0\n" : "=r" (v)); |
247 | __asm__ volatile ("rdpr %%tpc, %0\n" : "=r" (v)); |
248 | 248 | ||
249 | return v; |
249 | return v; |
250 | } |
250 | } |
251 | 251 | ||
- | 252 | /** Read Trap Level register. |
|
- | 253 | * |
|
- | 254 | * @return Current value in TL. |
|
- | 255 | */ |
|
- | 256 | static inline __u64 tl_read(void) |
|
- | 257 | { |
|
- | 258 | __u64 v; |
|
- | 259 | ||
- | 260 | __asm__ volatile ("rdpr %%tl, %0\n" : "=r" (v)); |
|
- | 261 | ||
- | 262 | return v; |
|
- | 263 | } |
|
252 | 264 | ||
253 | /** Write Trap Base Address register. |
265 | /** Write Trap Base Address register. |
254 | * |
266 | * |
255 | * @param New value of TBA. |
267 | * @param New value of TBA. |
256 | */ |
268 | */ |