CVSROOT:        /cvs
Module name:    src
Changes by:     bl...@cvs.openbsd.org   2018/03/31 07:55:05

Modified files:
        sys/arch/i386/i386: machdep.c 

Log message:
Fix a hang on i386 vmware guest that was happening on copyout() of
arguments for /sbin/init.

For CPU 0 identifycpu() originally got called twice, once very early
from cpu_startup(), then again from cpu_attach().  Now we call
identifycpu() only from cpu_attach() with CPUF_PRIMARY set.  So
make sure, that for CPU 0 nothing is skipped.  Otherwise, cpu_info
might have different features set for CPU 0 than for all other CPUs.
This is similar to what amd64 does.

from hshoexer@; reported and fix tested by Emilio Perea; OK mlarkin@

Reply via email to