Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144252108
D54996.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
805 B
Referenced Files
None
Subscribers
None
D54996.diff
View Options
diff --git a/sys/x86/x86/cpu_machdep.c b/sys/x86/x86/cpu_machdep.c
--- a/sys/x86/x86/cpu_machdep.c
+++ b/sys/x86/x86/cpu_machdep.c
@@ -161,16 +161,18 @@
u_int exmode;
int bound_cpu, cpu, i, is_bound;
- a.op = op & MSR_OP_OP_MASK;
- MPASS(a.op == MSR_OP_ANDNOT || a.op == MSR_OP_OR ||
- a.op == MSR_OP_WRITE || a.op == MSR_OP_READ);
exmode = op & MSR_OP_EXMODE_MASK;
MPASS(exmode == MSR_OP_LOCAL || exmode == MSR_OP_SCHED_ALL ||
exmode == MSR_OP_SCHED_ONE || exmode == MSR_OP_RENDEZVOUS_ALL ||
exmode == MSR_OP_RENDEZVOUS_ONE);
+
+ a.op = op & MSR_OP_OP_MASK;
+ MPASS(a.op == MSR_OP_ANDNOT || a.op == MSR_OP_OR ||
+ a.op == MSR_OP_WRITE || a.op == MSR_OP_READ);
a.msr = msr;
a.arg1 = arg1;
a.res = res;
+
switch (exmode) {
case MSR_OP_LOCAL:
x86_msr_op_one(&a);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 8, 3:51 AM (5 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28435386
Default Alt Text
D54996.diff (805 B)
Attached To
Mode
D54996: x86: x86_msr_op(): Add comments, guarantee atomicity
Attached
Detach File
Event Timeline
Log In to Comment