Rev 3993 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3993 | Rev 4130 | ||
---|---|---|---|
Line 38... | Line 38... | ||
38 | extern uint64_t read_from_ag_g7(void); |
38 | extern uint64_t read_from_ag_g7(void); |
39 | extern void write_to_ag_g6(uint64_t val); |
39 | extern void write_to_ag_g6(uint64_t val); |
40 | extern void write_to_ag_g7(uint64_t val); |
40 | extern void write_to_ag_g7(uint64_t val); |
41 | extern void write_to_ig_g6(uint64_t val); |
41 | extern void write_to_ig_g6(uint64_t val); |
42 | 42 | ||
- | 43 | ||
- | 44 | /** Read Version Register. |
|
- | 45 | * |
|
- | 46 | * @return Value of VER register. |
|
- | 47 | */ |
|
- | 48 | static inline uint64_t ver_read(void) |
|
- | 49 | { |
|
- | 50 | uint64_t v; |
|
- | 51 | ||
- | 52 | asm volatile ("rdpr %%ver, %0\n" : "=r" (v)); |
|
- | 53 | ||
- | 54 | return v; |
|
- | 55 | } |
|
- | 56 | ||
43 | #endif |
57 | #endif |
44 | 58 | ||
45 | /** @} |
59 | /** @} |
46 | */ |
60 | */ |