cvs commit: src/sys/amd64/amd64 fpu.c

Tim Robbins tim at robbins.dropbear.id.au
Sun Jun 6 09:14:54 GMT 2004


On Sun, Jun 06, 2004 at 09:12:21AM +0100, David Malone wrote:

> On Fri, Jun 04, 2004 at 08:13:39PM -0700, David Schultz wrote:
> >   Modified files:
> >     sys/amd64/amd64      fpu.c 
> >   Log:
> >   Initialize the MXCSR to the appropriate default value at startup.
> 
> This seems to result in a "Fault trap 1: privileged instrustion
> fault while in the kernel" while executing the ldmscsr instruction.
> If I comment it out, everything works fine again.
> 
> >   Tested on:      tjr
> 
> This must be a situation where testing on humans is bad ;-)

It works fine here.

CPU: AMD Athlon(tm) 64 Processor 3000+ (2002.57-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0xf48  Stepping = 8
  Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
  AMD Features=0xe0500800<SYSCALL,NX,MMX+,LM,3DNow!+,3DNow!>


Tim


More information about the cvs-src mailing list