Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

Commit

Permalink
L4Linux: Return false for eager FPU handling
Browse files Browse the repository at this point in the history
If this feature is set, it triggers a BUG_ON in
'do_device_not_available' (traps.c).

Review on L4Linux update!
  • Loading branch information
ssumpf authored and skalk committed Feb 25, 2015
1 parent 7f2ab08 commit 25aa4a5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arch/x86/include/asm/fpu-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ static inline int is_x32_frame(void)

static __always_inline __pure bool use_eager_fpu(void)
{
return static_cpu_has(X86_FEATURE_EAGER_FPU);
/*
* Always return false, otherwise the BUG_ON function in
* 'do_device_not_available' (traps.c) triggers
* (review on L4Linux update)
*/
return false;
}

static __always_inline __pure bool use_xsaveopt(void)
Expand Down

0 comments on commit 25aa4a5

Please sign in to comment.