Advertisement
jintack

Untitled

May 2nd, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #define read_s_sysreg(sreg) ({ \
  2. u64 __val = 0; \
  3. asm volatile("mrs_pvr\n\t" \
  4. "mov %0, x1\n\t" : "=r" (__val)::"x1"); \
  5. __val; \
  6. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement