cobalt/x86: adapt fpu code with Linux kernel upstream
PATCH 1/4 cobalt/x86: adapt fpu code with Linux kernel upstream
Signed-off-by Fino Meng <[email protected]>
Signed-off-by Mingliang Hu <[email protected]>
--- kernel/cobalt/arch/x86/thread.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
kernel/cobalt/arch/x86/thread.c +5 -1
@@ -26,6 +26,10 @@#include <asm/mmu_context.h> #include <asm/processor.h> +#ifdef IPIPE_X86_FPU_EAGER +extern void fpu__initialize (struct fpu *fpu); +#endif +static struct kmem_cache *xstate_cache;#ifdef IPIPE_X86_FPU_EAGER
@@ -472,7 +476,7 @@ void xnarch_leave_root(struct xnthread *root)#if LINUX_VERSION_CODE >=KERNEL_VERSION (4 ,14 ,0 )/* restore current's fpregs */ __cpu_invalidate_fpregs_state (); -switch_fpu_finish (¤t->thread.fpu,smp_processor_id ()); +switch_fpu_finish (¤t->thread.fpu);#else /* mark current thread as not owning the FPU anymore */ if (fpregs_active ())
Signature · 1 line
2.20.1