Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177713194
D61713.1795108055.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
619 B
Referenced Files
None
Subscribers
None
D61713.1795108055.diff
View Options
diff --git a/sys/amd64/amd64/cpu_switch.S b/sys/amd64/amd64/cpu_switch.S
--- a/sys/amd64/amd64/cpu_switch.S
+++ b/sys/amd64/amd64/cpu_switch.S
@@ -299,6 +299,15 @@
ctx_switch_xsave32:
xsave (%r9)
jmp ctx_switch_xsave_done
+
+ /* Wait for the new thread to become unblocked */
+sw1wait:
+1:
+ pause
+ movq TD_LOCK(%r12),%rcx
+ cmpq %rcx, %rdx
+ je 1b
+ jmp sw1cont
END(cpu_switch)
/*
@@ -554,13 +563,4 @@
ret
END(resumectx)
-/* Wait for the new thread to become unblocked */
-sw1wait:
-1:
- pause
- movq TD_LOCK(%r12),%rcx
- cmpq %rcx, %rdx
- je 1b
- jmp sw1cont
-
.section .note.GNU-stack,"",%progbits
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 19, 5:07 PM (22 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41846969
Default Alt Text
D61713.1795108055.diff (619 B)
Attached To
Mode
D61713: cpu_switch(): Move 'sw1wait' inside the function block
Attached
Detach File
Event Timeline