Skip to content

Commit e8981b0

Browse files
CS Bug
1 parent 219ad21 commit e8981b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/instructions/segmentation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub unsafe fn set_cs(sel: SegmentSelector) {
2424
}
2525

2626
// Pushes the new CS and the address of the "ret" function
27-
asm!("push {cs}; lea {out_reg}, [{ret_sym}]; push {out_reg}, retf",
27+
asm!("push {cs}; lea {out_reg}, [{ret_sym}]; push {out_reg}; retf",
2828
cs = in(reg) u64::from(sel.0), ret_sym = sym ret_sym, out_reg = out(reg) _);
2929
}
3030

0 commit comments

Comments
 (0)