Re: Why does FBSD always assume it's on an 8080 CPU?



Chris H. wrote:
...or when will FreeBSD support Pentium features?

I want to apologize in advance if this should be on the kern@
But it seemed apropriate for this list too and I'm already on it.
I've noticed building kernels, that since v. >= 5 that during
the phase 2/3 all the lines echoed to the screen contain:
-mno-mmx -mno-3dnow -mno-sse -mno-sse2 ...
As Pentium have been the "norm" for many years now, why aren't
these /assumed/? I'm building on several SMP PIII's and a build
is in process now on a PIV Athalon running 6.2 the source and
ports tree were cvsupped 01-25 @02:03:00 -0800. Yet this
current kernel build is echoing these same -mno- lines. I have
machine i386
cpu I686_CPU
device apic
uncommented and I386_CPU, I486_CPU & I586_CPU commented. I have
grepped the /src/sys/conf/NOTES as well as the /src/sys/i386/conf/NOTES
Yet the only case I find relating to this is on line: 130 in:
/src/sys/i386/conf/NOTES which reads:
# CPU_ENABLE_SSE enables SSE/MMX2 instructions support. This is default
# on I686_CPU and above.
Default? hmmm... not as far as I can tell. Anyway, I would *greatly*
appreciate any insight on this issue. Do I need to pollute my make.conf
file to achive a Pentium kernel?

Thank you very much for all your time and consideration.

--Chris


Context switching.

We already preserve the "core" CPU state and the FPU state between context switches. Adding MMX into the mix means preserving an MMX state (since it can clobber the FPU state) and so forth.

jmc

_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • [PATCH 6/6] syslets: add both 32bit and 64bit x86 syslet support
    ... The syslet thread creation routines create a new thread which executes ... a kernel function and then returns to userspace instead of exiting. ... this can just juggle pointers to transfer the fpu state. ...
    (Linux-Kernel)
  • Re: [2.6.8.1/x86] The kernel is _always_ compiled with -msoft-float
    ... > Why this kernel is always compiled with the FP emulation for x86? ... The problem is that the kernel can't use the FPU. ... Thus we force gcc to use the library functions for floating point ... manually save the FPU state, load your operations into it, operate, ...
    (Linux-Kernel)
  • Re: ASCII -> HEX
    ... >An question about MMX, do I have to use EMMS/FEMMS at ... Since you mentioned kernel, I'll caution that Windows kernel code is not ... save FPU state. ...
    (comp.lang.asm.x86)
  • Re: Fwd: 5-STABLE kernel build with icc broken
    ... >>Later in that thread they discuss skipping the restore state to make ... > b) save FPU state on a context switch (or if the kernel wants the FPU) ... > trigger a trap. ...
    (freebsd-hackers)