diff options
author | Vi0L0 | 2015-12-23 18:56:11 +0100 |
---|---|---|
committer | Vi0L0 | 2015-12-23 18:56:11 +0100 |
commit | 7e1b4af54c67cf4eb9fef7d94d3e9a59f55e8a77 (patch) | |
tree | 2f3ce6cf80db8e0a7d49a137c6ed418f2c5badaa /4.4-manjaro-xstate.patch | |
parent | 7566f4f49cafe3405a9cc9b04c098938f3b5a94d (diff) | |
download | aur-7e1b4af54c67cf4eb9fef7d94d3e9a59f55e8a77.tar.gz |
updated to 15.201.2401 + initial 4.4 kernel and grsec support
Diffstat (limited to '4.4-manjaro-xstate.patch')
-rw-r--r-- | 4.4-manjaro-xstate.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/4.4-manjaro-xstate.patch b/4.4-manjaro-xstate.patch new file mode 100644 index 000000000000..c221952d5ec7 --- /dev/null +++ b/4.4-manjaro-xstate.patch @@ -0,0 +1,22 @@ +--- 15.12/common/lib/modules/fglrx/build_mod/firegl_public.c 2015-12-18 19:47:41.000000000 +0100 ++++ 15.12b/common/lib/modules/fglrx/build_mod/firegl_public.c 2015-12-19 20:48:13.223261632 +0100 +@@ -6450,12 +6450,15 @@ + struct fpu *fpu = &tsk->thread.fpu; + + if(static_cpu_has(X86_FEATURE_XSAVE)) { +-#if LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0) +- fpu_xsave(fpu); +- if (!(fpu->state->xsave.xsave_hdr.xstate_bv & XSTATE_FP)) +-#else ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,4,0) ++ copy_xregs_to_kernel(&fpu->state.xsave); ++ if (!(fpu->state.xsave.header.xfeatures & XFEATURE_MASK_FP)) ++#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0) + copy_xregs_to_kernel(&fpu->state.xsave); + if (!(fpu->state.xsave.header.xfeatures & XSTATE_FP)) ++#else ++ fpu_xsave(fpu); ++ if (!(fpu->state->xsave.xsave_hdr.xstate_bv & XSTATE_FP)) + #endif + return 1; + } else if (static_cpu_has(X86_FEATURE_FXSR)) { |