Re: [PATCH v4 03/11] x86/startup_64: Simplify CR4 handling in startup code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 13, 2024 at 01:41:47PM +0100, Ard Biesheuvel wrote:
> -#ifdef CONFIG_X86_5LEVEL
> -	testb	$1, __pgtable_l5_enabled(%rip)
> -	jz	1f
> -	orl	$X86_CR4_LA57, %ecx
> -1:
> +	orl	$X86_CR4_MCE, %edx
>  #endif
> +	movq	%cr4, %rcx
> +	andl	%edx, %ecx

Let's just state it explicitly:

	/* Even if ignored in long mode, set PSE uniformly on all logical CPUs. */

> +	btsl	$X86_CR4_PSE_BIT, %ecx
>  	movq	%rcx, %cr4

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette




[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux