Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108121662
D30047.id88421.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
799 B
Referenced Files
None
Subscribers
None
D30047.id88421.diff
View Options
Index: sys/sys/pmc.h
===================================================================
--- sys/sys/pmc.h
+++ sys/sys/pmc.h
@@ -415,12 +415,12 @@
*/
#define PMC_ID_TO_ROWINDEX(ID) ((ID) & 0xFF)
-#define PMC_ID_TO_CLASS(ID) (((ID) & 0xF00) >> 8)
-#define PMC_ID_TO_MODE(ID) (((ID) & 0xFF000) >> 12)
+#define PMC_ID_TO_CLASS(ID) (((ID) & 0xFF00) >> 8)
+#define PMC_ID_TO_MODE(ID) (((ID) & 0xF0000) >> 16)
#define PMC_ID_TO_CPU(ID) (((ID) & 0xFFF00000) >> 20)
#define PMC_ID_MAKE_ID(CPU,MODE,CLASS,ROWINDEX) \
- ((((CPU) & 0xFFF) << 20) | (((MODE) & 0xFF) << 12) | \
- (((CLASS) & 0xF) << 8) | ((ROWINDEX) & 0xFF))
+ ((((CPU) & 0xFFF) << 20) | (((MODE) & 0xF) << 16) | \
+ (((CLASS) & 0xFF) << 8) | ((ROWINDEX) & 0xFF))
/*
* Data structures for system calls supported by the pmc driver.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 22, 3:02 PM (13 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16031241
Default Alt Text
D30047.id88421.diff (799 B)
Attached To
Mode
D30047: hwpmc: Move 4 bits of mode to extend class size to 8.
Attached
Detach File
Event Timeline
Log In to Comment