[lkml]   [2000]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: missing mxcsr initialization
Followup to:  <>
By author: Doug Ledford <>
In newsgroup:
> On that specific bit I haven't seen it go out of sync yet. However, I program
> it defensively because I already got bit by the fact that the X86_FEATURE_PN
> bit on Intel means something different than on AMD and as a result of getting
> it wrong my first time out, AMD CPUs were segfaulting when I tried to disable
> their non-existent serial number. So, since these bits vary from vendor to
> vendor, I would prefer to see it handled like the PN bit, that is check for
> all vendors that *do* use the bit to mean FXSR or XMM, but don't rely on all
> vendors to do so. In that case, we could check for vendor == INTEL || vendor
> == AMD, but I would still prefer to see *some* check on the vendor before
> honoring the bits.

This isn't defensive programming at all. You *introduce* bugs this
way; instead of handling (CPU) bugs as the workarounds they are.

<> at work, <> in private!
"Unix gives you enough rope to shoot yourself in the foot."
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:43    [W:0.111 / U:0.648 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site