]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix topology enumeration issues exposed by AMD Bulldozer Family 15h processor.
authorneel <neel@FreeBSD.org>
Thu, 16 Oct 2014 18:13:10 +0000 (18:13 +0000)
committerneel <neel@FreeBSD.org>
Thu, 16 Oct 2014 18:13:10 +0000 (18:13 +0000)
commit09fbd3f7d9734eda1582ea172e88cda9b67285bc
tree10a5528498e202b7215375629440ac3ab348b29b
parentc4ba9b78fda6d4a5604921e2f20105c64e50d735
Fix topology enumeration issues exposed by AMD Bulldozer Family 15h processor.

Initialize CPUID.80000008H:ECX[7:0] with the number of logical processors in
the package. This fixes a panic during early boot in NetBSD 7.0 BETA.

Clear the Topology Extension feature bit from CPUID.80000001H:ECX since we
don't emulate leaves 0x8000001D and 0x8000001E. This fixes a divide by zero
panic in early boot in Centos 6.4.

Tested on an "AMD Opteron 6320" courtesy of Ben Perrault.

Reviewed by: grehan
sys/amd64/vmm/x86.c