Subversion Repositories HelenOS

Rev

Rev 2071 | Rev 2089 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2071 Rev 2082
Line 140... Line 140...
140
 *
140
 *
141
 * Probe TLB for Matching Entry.
141
 * Probe TLB for Matching Entry.
142
 */
142
 */
143
static inline void tlbp(void)
143
static inline void tlbp(void)
144
{
144
{
145
    __asm__ volatile ("tlbp\n\t");
145
    asm volatile ("tlbp\n\t");
146
}
146
}
147
 
147
 
148
 
148
 
149
/** Read Indexed TLB Entry
149
/** Read Indexed TLB Entry
150
 *
150
 *
151
 * Read Indexed TLB Entry.
151
 * Read Indexed TLB Entry.
152
 */
152
 */
153
static inline void tlbr(void)
153
static inline void tlbr(void)
154
{
154
{
155
    __asm__ volatile ("tlbr\n\t");
155
    asm volatile ("tlbr\n\t");
156
}
156
}
157
 
157
 
158
/** Write Indexed TLB Entry
158
/** Write Indexed TLB Entry
159
 *
159
 *
160
 * Write Indexed TLB Entry.
160
 * Write Indexed TLB Entry.
161
 */
161
 */
162
static inline void tlbwi(void)
162
static inline void tlbwi(void)
163
{
163
{
164
    __asm__ volatile ("tlbwi\n\t");
164
    asm volatile ("tlbwi\n\t");
165
}
165
}
166
 
166
 
167
/** Write Random TLB Entry
167
/** Write Random TLB Entry
168
 *
168
 *
169
 * Write Random TLB Entry.
169
 * Write Random TLB Entry.
170
 */
170
 */
171
static inline void tlbwr(void)
171
static inline void tlbwr(void)
172
{
172
{
173
    __asm__ volatile ("tlbwr\n\t");
173
    asm volatile ("tlbwr\n\t");
174
}
174
}
175
 
175
 
176
#define tlb_invalidate(asid)    tlb_invalidate_asid(asid)
176
#define tlb_invalidate(asid)    tlb_invalidate_asid(asid)
177
 
177
 
178
extern void tlb_invalid(istate_t *istate);
178
extern void tlb_invalid(istate_t *istate);