]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/x86/kernel/head64.c
x86: Store a per-cpu shadow copy of CR4
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / kernel / head64.c
index eda1a865641e2e86f01961265619ab0484b96631..3b241f0ca005fcfc9a157d2bdff04ad69f0d34f8 100644 (file)
@@ -155,6 +155,8 @@ asmlinkage __visible void __init x86_64_start_kernel(char * real_mode_data)
                                (__START_KERNEL & PGDIR_MASK)));
        BUILD_BUG_ON(__fix_to_virt(__end_of_fixed_addresses) <= MODULES_END);
 
+       cr4_init_shadow();
+
        /* Kill off the identity-map trampoline */
        reset_early_page_tables();