Michael Closson wrote: > Hello All. > > I'm looking for ways to do chip/core/thread detection on versions of solaris > that don't support the core_id field in kstat's cpu_info. > > For AMD/Intel procs I can use sysconf() and CPUID. > > For Sparc procs (like Niagra), I don't know how to get this information. Is > there an assemply language instruction similar to CPUID? > > Thanks Ahead! > > > This message posted from opensolaris.org > _______________________________________________ > opensolaris-code mailing list > [email protected] > http://mail.opensolaris.org/mailman/listinfo/opensolaris-code >
Look at /dev/cpu/self/cpuid -- it has an ioctl for getting the hw capabilities. This is exploited by isainfo, for example. _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
