mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Add logic for handling new-style ARM cpu ID info.
Submitted by: Michal Meloun <meloun@miracle.cz>
This commit is contained in:
parent
270d667cd2
commit
8e6dd301f0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278770
@ -58,9 +58,13 @@ cpuinfo_init(void)
|
||||
/* ARMv4T CPU */
|
||||
cpuinfo.architecture = 1;
|
||||
cpuinfo.revision = (cpuinfo.midr >> 16) & 0x7F;
|
||||
}
|
||||
} else {
|
||||
/* ARM new id scheme */
|
||||
cpuinfo.architecture = (cpuinfo.midr >> 16) & 0x0F;
|
||||
cpuinfo.revision = (cpuinfo.midr >> 20) & 0x0F;
|
||||
}
|
||||
} else {
|
||||
/* must be new id scheme */
|
||||
/* non ARM -> must be new id scheme */
|
||||
cpuinfo.architecture = (cpuinfo.midr >> 16) & 0x0F;
|
||||
cpuinfo.revision = (cpuinfo.midr >> 20) & 0x0F;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user