Read the Multiprocessing Extensions bit from the Multiprocessor Affinity

register.

Sponsored by:	ABT Systems Ltd
X-Differential Revision:	https://reviews.freebsd.org/D8092
This commit is contained in:
Andrew Turner 2016-10-04 12:01:08 +00:00
parent f3e9b21a7a
commit d029cb6152
2 changed files with 5 additions and 0 deletions

View File

@ -131,6 +131,8 @@ cpuinfo_init(void)
cpuinfo.generic_timer_ext = (cpuinfo.id_pfr1 >> 16) & 0xF;
cpuinfo.virtualization_ext = (cpuinfo.id_pfr1 >> 12) & 0xF;
cpuinfo.security_ext = (cpuinfo.id_pfr1 >> 4) & 0xF;
/* mpidr */
cpuinfo.mp_ext = (cpuinfo.mpidr >> 31u) & 0x1;
/* L1 Cache sizes */
if (CPU_CT_FORMAT(cpuinfo.ctr) == CPU_CT_ARMV7) {

View File

@ -105,6 +105,9 @@ struct cpuinfo {
int dcache_line_mask;
int icache_line_size;
int icache_line_mask;
/* mpidr */
int mp_ext;
};
extern struct cpuinfo cpuinfo;