Followup to:  <[EMAIL PROTECTED]>
By author:    Doug Ledford <[EMAIL PROTECTED]>
In newsgroup: linux.dev.kernel
> 
> 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.

        -hpa
-- 
<[EMAIL PROTECTED]> at work, <[EMAIL PROTECTED]> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to