]> git.pld-linux.org Git - packages/VirtualBox.git/blame - VirtualBox-cpu_has_pge.patch
make additions noarch again; rel 2
[packages/VirtualBox.git] / VirtualBox-cpu_has_pge.patch
CommitLineData
0f08def2
JP
1--- VirtualBox-5.1.2/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h.orig 2016-08-02 17:32:06.189576892 +0200
2+++ VirtualBox-5.1.2/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h 2016-08-02 17:33:03.373118295 +0200
3@@ -249,7 +249,7 @@
4 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 8) && defined(PAGE_KERNEL_EXEC) && defined(CONFIG_X86_PAE)
5 # ifdef __PAGE_KERNEL_EXEC
6 /* >= 2.6.27 */
7-# define MY_PAGE_KERNEL_EXEC __pgprot(cpu_has_pge ? __PAGE_KERNEL_EXEC | _PAGE_GLOBAL : __PAGE_KERNEL_EXEC)
8+# define MY_PAGE_KERNEL_EXEC __pgprot(boot_cpu_has(X86_FEATURE_PGE) ? __PAGE_KERNEL_EXEC | _PAGE_GLOBAL : __PAGE_KERNEL_EXEC)
9 # else
10 # define MY_PAGE_KERNEL_EXEC __pgprot(cpu_has_pge ? _PAGE_KERNEL_EXEC | _PAGE_GLOBAL : _PAGE_KERNEL_EXEC)
11 # endif
This page took 0.865036 seconds and 4 git commands to generate.