From 57b7916473da751bdbbe4f5bf72cbe84ef2c951b Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Tue, 20 Oct 2015 09:40:12 +0100 Subject: [PATCH] Allow legacy nvidia driver to work with 4.2+ kernel (see 4382 for details) --- .../patches/linux/linux-0001-export-mtrr.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 projects/Nvidia_Legacy/patches/linux/linux-0001-export-mtrr.patch diff --git a/projects/Nvidia_Legacy/patches/linux/linux-0001-export-mtrr.patch b/projects/Nvidia_Legacy/patches/linux/linux-0001-export-mtrr.patch new file mode 100644 index 0000000000..2777813d14 --- /dev/null +++ b/projects/Nvidia_Legacy/patches/linux/linux-0001-export-mtrr.patch @@ -0,0 +1,18 @@ +--- a/arch/x86/kernel/cpu/mtrr/main.c 2015-10-18 08:10:52.951166026 +0100 ++++ b/arch/x86/kernel/cpu/mtrr/main.c 2015-10-18 08:11:54.651493742 +0100 +@@ -448,6 +448,7 @@ + return mtrr_add_page(base >> PAGE_SHIFT, size >> PAGE_SHIFT, type, + increment); + } ++EXPORT_SYMBOL(mtrr_add); + + /** + * mtrr_del_page - delete a memory type region +@@ -536,6 +537,7 @@ + return -EINVAL; + return mtrr_del_page(reg, base >> PAGE_SHIFT, size >> PAGE_SHIFT); + } ++EXPORT_SYMBOL(mtrr_del); + + /** + * arch_phys_wc_add - add a WC MTRR and handle errors if PAT is unavailable