summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/vmware-modules/files/308-5.06-01-ioremap_nocache.patch')
-rw-r--r--app-emulation/vmware-modules/files/308-5.06-01-ioremap_nocache.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/app-emulation/vmware-modules/files/308-5.06-01-ioremap_nocache.patch b/app-emulation/vmware-modules/files/308-5.06-01-ioremap_nocache.patch
new file mode 100644
index 0000000..0c9b325
--- /dev/null
+++ b/app-emulation/vmware-modules/files/308-5.06-01-ioremap_nocache.patch
@@ -0,0 +1,14 @@
+--- ./vmmon-only/linux/hostif.c 2020-04-11 17:06:49.676687324 +0200
++++ ./vmmon-only/linux/hostif.c.new 2020-04-11 17:24:17.482768853 +0200
+@@ -2335,7 +2335,11 @@
+ volatile void *hostapic;
+
+ ASSERT_ON_COMPILE(APICR_SIZE <= PAGE_SIZE);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ hostapic = (volatile void *) ioremap_nocache(ma, PAGE_SIZE);
++#else
++ hostapic = (volatile void *) ioremap(ma, PAGE_SIZE);
++#endif
+ if (hostapic) {
+ if ((APIC_VERSIONREG(hostapic) & 0xF0) == 0x10) {
+ vm->hostAPIC.base = (volatile uint32 (*)[4]) hostapic;