Rev 658 | Rev 665 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 658 | Rev 664 | ||
---|---|---|---|
Line 98... | Line 98... | ||
98 | static inline void tick_write(__u64 v) |
98 | static inline void tick_write(__u64 v) |
99 | { |
99 | { |
100 | __asm__ volatile ("wrpr %0, %1, %%tick\n" : : "r" (v), "i" (0)); |
100 | __asm__ volatile ("wrpr %0, %1, %%tick\n" : : "r" (v), "i" (0)); |
101 | } |
101 | } |
102 | 102 | ||
- | 103 | /** Read SOFTINT Register. |
|
- | 104 | * |
|
- | 105 | * @return Value of SOFTINT register. |
|
- | 106 | */ |
|
- | 107 | static inline __u64 softint_read(void) |
|
- | 108 | { |
|
- | 109 | __u64 v; |
|
- | 110 | ||
- | 111 | __asm__ volatile ("rd %%softint, %0\n" : "=r" (v)); |
|
- | 112 | ||
- | 113 | return v; |
|
- | 114 | } |
|
- | 115 | ||
- | 116 | /** Write SOFTINT Register. |
|
- | 117 | * |
|
- | 118 | * @param New value of SOFTINT register. |
|
- | 119 | */ |
|
- | 120 | static inline void softint_write(__u64 v) |
|
- | 121 | { |
|
- | 122 | __asm__ volatile ("wr %0, %1, %%softint\n" : : "r" (v), "i" (0)); |
|
- | 123 | } |
|
103 | 124 | ||
104 | /** Enable interrupts. |
125 | /** Enable interrupts. |
105 | * |
126 | * |
106 | * Enable interrupts and return previous |
127 | * Enable interrupts and return previous |
107 | * value of IPL. |
128 | * value of IPL. |