Skip to content

Commit bf21a93

Browse files
committed
improve readability
1 parent 2904247 commit bf21a93

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/arch/x86/kernel/mod.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,7 @@ core::arch::global_asm!(include_str!("entry32.s"));
2525

2626
#[unsafe(naked)]
2727
unsafe extern "C" fn __jump_to_user_land(ds: usize, stack: usize, cs: usize, entry: usize) -> ! {
28-
naked_asm!(
29-
"swapgs",
30-
"push rdi",
31-
"push rsi",
32-
"pushf",
33-
"push rdx",
34-
"push rcx",
35-
"iretq",
36-
)
28+
naked_asm!("swapgs", "push rdi", "push rsi", "pushf", "push rdx", "push rcx", "iretq",)
3729
}
3830

3931
/// Helper function to jump into the user space

0 commit comments

Comments
 (0)