Function x86_64::instructions::segmentation::set_cs [−][src]
pub unsafe fn set_cs(sel: SegmentSelector)
Reload code segment register.
Note this is special since we can not directly move to cs. Instead we push the new segment selector and return value on the stack and use retf to reload cs and continue at 1:.
Safety
This function is unsafe because the caller must ensure that sel
is a valid code segment descriptor.