Lines Matching refs:tss_seg
3089 struct tss_segment_16 tss_seg; in task_switch_16() local
3093 ret = linear_read_system(ctxt, old_tss_base, &tss_seg, sizeof(tss_seg)); in task_switch_16()
3097 save_state_to_tss16(ctxt, &tss_seg); in task_switch_16()
3099 ret = linear_write_system(ctxt, old_tss_base, &tss_seg, sizeof(tss_seg)); in task_switch_16()
3103 ret = linear_read_system(ctxt, new_tss_base, &tss_seg, sizeof(tss_seg)); in task_switch_16()
3108 tss_seg.prev_task_link = old_tss_sel; in task_switch_16()
3111 &tss_seg.prev_task_link, in task_switch_16()
3112 sizeof(tss_seg.prev_task_link)); in task_switch_16()
3117 return load_state_from_tss16(ctxt, &tss_seg); in task_switch_16()
3227 struct tss_segment_32 tss_seg; in task_switch_32() local
3233 ret = linear_read_system(ctxt, old_tss_base, &tss_seg, sizeof(tss_seg)); in task_switch_32()
3237 save_state_to_tss32(ctxt, &tss_seg); in task_switch_32()
3240 ret = linear_write_system(ctxt, old_tss_base + eip_offset, &tss_seg.eip, in task_switch_32()
3245 ret = linear_read_system(ctxt, new_tss_base, &tss_seg, sizeof(tss_seg)); in task_switch_32()
3250 tss_seg.prev_task_link = old_tss_sel; in task_switch_32()
3253 &tss_seg.prev_task_link, in task_switch_32()
3254 sizeof(tss_seg.prev_task_link)); in task_switch_32()
3259 return load_state_from_tss32(ctxt, &tss_seg); in task_switch_32()