Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c758907

Browse files
Lai JiangshanKAGA-KOKO
authored andcommitted
x86/entry/64: Remove unneeded kernel CR3 switching
When native_load_gs_index() fails on .Lgs_change, CR3 must be kernel CR3. No need to switch it. Signed-off-by: Lai Jiangshan <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 26fa126 commit c758907

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/x86/entry/entry_64.S

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,6 @@ SYM_CODE_START_LOCAL(error_entry)
13341334
*/
13351335
SWAPGS
13361336
FENCE_SWAPGS_USER_ENTRY
1337-
SWITCH_TO_KERNEL_CR3 scratch_reg=%rax
13381337
jmp .Lerror_entry_done
13391338

13401339
.Lbstep_iret:

0 commit comments

Comments
 (0)