forked from pool/virtualbox
8cbc364fed
Feel free to include a proposed fix to be able to build ix86 arch - Add upstream patch fix cpu_has_pge removed macro in kernel 4.7 Patch11 - Add ifarch ix86 to limit concurrency on 32bits (-j2) Remove ExcludeArch instructions OBS-URL: https://build.opensuse.org/request/show/417849 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=263
16 lines
855 B
Diff
16 lines
855 B
Diff
Index: VirtualBox-5.1.2/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h
|
|
===================================================================
|
|
--- VirtualBox-5.1.2.ori/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h
|
|
+++ VirtualBox-5.1.2/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h
|
|
@@ -257,7 +257,7 @@
|
|
# ifdef __PAGE_KERNEL_EXEC
|
|
/* >= 2.6.27 */
|
|
-# define MY_PAGE_KERNEL_EXEC __pgprot(cpu_has_pge ? __PAGE_KERNEL_EXEC | _PAGE_GLOBAL : __PAGE_KERNEL_EXEC)
|
|
+# define MY_PAGE_KERNEL_EXEC __pgprot(boot_cpu_has(X86_FEATURE_PGE) ? __PAGE_KERNEL_EXEC | _PAGE_GLOBAL : __PAGE_KERNEL_EXEC)
|
|
# else
|
|
-# define MY_PAGE_KERNEL_EXEC __pgprot(cpu_has_pge ? _PAGE_KERNEL_EXEC | _PAGE_GLOBAL : _PAGE_KERNEL_EXEC)
|
|
+# define MY_PAGE_KERNEL_EXEC __pgprot(boot_cpu_has(X86_FEATURE_PGE) ? _PAGE_KERNEL_EXEC | _PAGE_GLOBAL : _PAGE_KERNEL_EXEC)
|
|
# endif
|
|
#else
|
|
|