]> git.pld-linux.org Git - packages/VirtualBox.git/commitdiff
replace cpu_has_pge with boot_cpu_has(X86_FEATURE_PGE) auto/th/VirtualBox-5.1.2-1
authorJan Palus <atler@pld-linux.org>
Tue, 2 Aug 2016 15:38:25 +0000 (17:38 +0200)
committerJan Palus <atler@pld-linux.org>
Tue, 2 Aug 2016 15:38:25 +0000 (17:38 +0200)
for compatibility with kernel 4.7

VirtualBox-cpu_has_pge.patch [new file with mode: 0644]
VirtualBox.spec

diff --git a/VirtualBox-cpu_has_pge.patch b/VirtualBox-cpu_has_pge.patch
new file mode 100644 (file)
index 0000000..61ac5d8
--- /dev/null
@@ -0,0 +1,11 @@
+--- VirtualBox-5.1.2/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h.orig      2016-08-02 17:32:06.189576892 +0200
++++ VirtualBox-5.1.2/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h   2016-08-02 17:33:03.373118295 +0200
+@@ -249,7 +249,7 @@
+ #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 8) && defined(PAGE_KERNEL_EXEC) && defined(CONFIG_X86_PAE)
+ # 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)
+ # endif
index e6c1180e6c9fd1276d42ce3d929768aae83219a6..2e8012635db8bee90c8ab1a803a12a9b921112c0 100644 (file)
@@ -79,6 +79,7 @@ Patch11:      18-system-xorg.patch
 Patch12:       %{pname}-all-translations.patch
 Patch13:       x32.patch
 Patch14:       %{pname}-no-scrextend.patch
+Patch15:       %{pname}-cpu_has_pge.patch
 URL:           http://www.virtualbox.org/
 %if %{with userspace}
 %ifarch %{x8664}
@@ -531,6 +532,7 @@ cd ../..\
 %endif
 %patch13 -p1
 %patch14 -p1
+%patch15 -p1
 
 %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \
        -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in
This page took 0.050015 seconds and 4 git commands to generate.