@@ -117,8 +117,8 @@ int save_idt(void)
117
117
*/
118
118
int save_apic (void )
119
119
{
120
- g_apic_lvtt_copy = apic_read (APIC_LVTT );
121
- g_apic_tdcr_copy = apic_read (APIC_TDCR );
120
+ g_apic_lvtt_copy = apic -> read (APIC_LVTT );
121
+ g_apic_tdcr_copy = apic -> read (APIC_TDCR );
122
122
log ("original APIC_LVTT=%#x/TDCR=%#x)" , g_apic_lvtt_copy , g_apic_tdcr_copy );
123
123
124
124
return 0 ;
@@ -174,8 +174,8 @@ void restore_apic(void)
174
174
{
175
175
int delta = 100 ;
176
176
177
- apic_write (APIC_LVTT , g_apic_lvtt_copy );
178
- apic_write (APIC_TDCR , g_apic_tdcr_copy );
177
+ apic -> write (APIC_LVTT , g_apic_lvtt_copy );
178
+ apic -> write (APIC_TDCR , g_apic_tdcr_copy );
179
179
log ("restored APIC_LVTT=%#x/TDCR=%#x)" , g_apic_lvtt_copy , g_apic_tdcr_copy );
180
180
181
181
/* In xAPIC mode the memory-mapped write to LVTT needs to be serialized. */
@@ -190,7 +190,7 @@ void restore_apic(void)
190
190
else
191
191
{
192
192
log ("restoring APIC timer one-shot/periodic operation" );
193
- apic_write (APIC_TMICT , delta );
193
+ apic -> write (APIC_TMICT , delta );
194
194
}
195
195
}
196
196
@@ -271,7 +271,7 @@ long sgx_step_get_pt_mapping(struct file *filep, unsigned int cmd, unsigned long
271
271
if ( !pmd_present ( * pmd ) )
272
272
return 0 ;
273
273
274
- pte = pte_offset_map ( pmd , virt );
274
+ pte = pte_offset_kernel ( pmd , virt );
275
275
map -> pte = * ((uint64_t * ) pte );
276
276
277
277
if ( !pte_present ( * pte ) )
0 commit comments