Subversion Repositories HelenOS

Rev

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

Rev 3022 Rev 4055
Line 105... Line 105...
105
static inline void dtsb_base_write(uint64_t v)
105
static inline void dtsb_base_write(uint64_t v)
106
{
106
{
107
    asi_u64_write(ASI_DMMU, VA_DMMU_TSB_BASE, v);
107
    asi_u64_write(ASI_DMMU, VA_DMMU_TSB_BASE, v);
108
}
108
}
109
 
109
 
-
 
110
#if defined (US3)
-
 
111
 
-
 
112
/** Write DTSB Primary Extension register.
-
 
113
 *
-
 
114
 * @param v New content of the DTSB Primary Extension register.
-
 
115
 */
-
 
116
static inline void dtsb_primary_extension_write(uint64_t v)
-
 
117
{
-
 
118
    asi_u64_write(ASI_DMMU, VA_DMMU_PRIMARY_EXTENSION, v);
-
 
119
}
-
 
120
 
-
 
121
/** Write DTSB Secondary Extension register.
-
 
122
 *
-
 
123
 * @param v New content of the DTSB Secondary Extension register.
-
 
124
 */
-
 
125
static inline void dtsb_secondary_extension_write(uint64_t v)
-
 
126
{
-
 
127
    asi_u64_write(ASI_DMMU, VA_DMMU_SECONDARY_EXTENSION, v);
-
 
128
}
-
 
129
 
-
 
130
/** Write DTSB Nucleus Extension register.
-
 
131
 *
-
 
132
 * @param v New content of the DTSB Nucleus Extension register.
-
 
133
 */
-
 
134
static inline void dtsb_nucleus_extension_write(uint64_t v)
-
 
135
{
-
 
136
    asi_u64_write(ASI_DMMU, VA_DMMU_NUCLEUS_EXTENSION, v);
-
 
137
}
-
 
138
 
-
 
139
/** Write ITSB Primary Extension register.
-
 
140
 *
-
 
141
 * @param v New content of the ITSB Primary Extension register.
-
 
142
 */
-
 
143
static inline void itsb_primary_extension_write(uint64_t v)
-
 
144
{
-
 
145
    asi_u64_write(ASI_IMMU, VA_IMMU_PRIMARY_EXTENSION, v);
-
 
146
}
-
 
147
 
-
 
148
/** Write ITSB Nucleus Extension register.
-
 
149
 *
-
 
150
 * @param v New content of the ITSB Nucleus Extension register.
-
 
151
 */
-
 
152
static inline void itsb_nucleus_extension_write(uint64_t v)
-
 
153
{
-
 
154
    asi_u64_write(ASI_IMMU, VA_IMMU_NUCLEUS_EXTENSION, v);
-
 
155
}
-
 
156
 
-
 
157
#endif
-
 
158
 
110
/* Forward declarations. */
159
/* Forward declarations. */
111
struct as;
160
struct as;
112
struct pte;
161
struct pte;
113
 
162
 
114
extern void tsb_invalidate(struct as *as, uintptr_t page, count_t pages);
163
extern void tsb_invalidate(struct as *as, uintptr_t page, count_t pages);