1
0
forked from pool/virtualbox
virtualbox/vbox-kernel47-cpu_has_pge.diff
Larry Finger 8cbc364fed Accepting request 417849 from home:bruno_friedmann:branches:Virtualization
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
2016-08-08 14:38:05 +00:00

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