Hello,
As some of you may already know SIMD operations are disabled in /sys/conf/kern.mk for kernel:
Just out of curiosity I've removed some of those instructions like this:
and so kernel has been built with aes,avx,mmx,sse enabled. The size of kernel became a bit smaller and looks like it boots faster now.
I use the kernel for some time already and haven't noticed any instabilities, crashes and so on. I even managed to rebuild/reinstall the world with new kernel. Plan to use it further.
May someone explain me why SIMD are disabled?
Regards.
As some of you may already know SIMD operations are disabled in /sys/conf/kern.mk for kernel:
Code:
#
# For AMD64, we explicitly prohibit the use of FPU, SSE and other SIMD
# operations inside the kernel itself. These operations are exclusively
# reserved for user applications.
#
.if ${MACHINE_CPUARCH} == "amd64"
CFLAGS.clang+= -mno-aes -mno-avx
CFLAGS+= -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float \
-fno-asynchronous-unwind-tables
INLINE_LIMIT?= 8000
.endif
Code:
.if ${MACHINE_CPUARCH} == "amd64"
CFLAGS+= -mcmodel=kernel -mno-red-zone -msoft-float \
-fno-asynchronous-unwind-tables
INLINE_LIMIT?= 8000
.endif
I use the kernel for some time already and haven't noticed any instabilities, crashes and so on. I even managed to rebuild/reinstall the world with new kernel. Plan to use it further.
May someone explain me why SIMD are disabled?
Regards.