Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143141602
D47123.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
992 B
Referenced Files
None
Subscribers
None
D47123.id.diff
View Options
diff --git a/sys/arm64/arm64/identcpu.c b/sys/arm64/arm64/identcpu.c
--- a/sys/arm64/arm64/identcpu.c
+++ b/sys/arm64/arm64/identcpu.c
@@ -365,6 +365,15 @@
u_int shift;
};
+#define MRS_FIELD_RES1(_width, _shift) \
+ { \
+ .sign = false, \
+ .type = MRS_EXACT | MRS_SAFE((1u << (_width)) - 1) | \
+ MRS_USERSPACE, \
+ .width = (_width), \
+ .shift = (_shift), \
+ }
+
#define MRS_FIELD_HWCAP(_register, _name, _sign, _type, _visibility, \
_values, _hwcap) \
{ \
@@ -2549,9 +2558,8 @@
for (i = 0; fields[i].type != 0; i++) {
fv = fields[i].values;
- /* TODO: Handle with an unknown message */
if (fv == NULL)
- continue;
+ goto next;
field = (reg & fields[i].mask) >> fields[i].shift;
for (j = 0; fv[j].desc != NULL; j++) {
@@ -2566,6 +2574,7 @@
sbuf_printf(sb, "%sUnknown %s(%x)", SEP_STR,
fields[i].name, field);
+next:
reg &= ~(((1ul << fields[i].width) - 1) << fields[i].shift);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 27, 12:38 PM (18 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28055828
Default Alt Text
D47123.id.diff (992 B)
Attached To
Mode
D47123: arm64: Handle RES1 ID register fields
Attached
Detach File
Event Timeline
Log In to Comment