Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163490159
D30276.id89305.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D30276.id89305.diff
View Options
diff --git a/sys/amd64/linux/linux_support.s b/sys/amd64/linux/linux_support.s
--- a/sys/amd64/linux/linux_support.s
+++ b/sys/amd64/linux/linux_support.s
@@ -126,16 +126,16 @@
movq $VM_MAXUSER_ADDRESS-4,%rax
cmpq %rax,%rsi
ja futex_fault
+ stac
movl (%rsi),%eax
1: movl %eax,%ecx
orl %edi,%ecx
- stac
#ifdef SMP
lock
#endif
cmpxchgl %ecx,(%rsi)
- clac
jnz 1b
+ clac
movl %eax,(%rdx)
xorl %eax,%eax
movq %rax,PCB_ONFAULT(%r8)
@@ -168,16 +168,16 @@
movq $VM_MAXUSER_ADDRESS-4,%rax
cmpq %rax,%rsi
ja futex_fault
+ stac
movl (%rsi),%eax
1: movl %eax,%ecx
andl %edi,%ecx
- stac
#ifdef SMP
lock
#endif
cmpxchgl %ecx,(%rsi)
- clac
jnz 1b
+ clac
movl %eax,(%rdx)
xorl %eax,%eax
movq %rax,PCB_ONFAULT(%r8)
@@ -210,16 +210,16 @@
movq $VM_MAXUSER_ADDRESS-4,%rax
cmpq %rax,%rsi
ja futex_fault
+ stac
movl (%rsi),%eax
1: movl %eax,%ecx
xorl %edi,%ecx
- stac
#ifdef SMP
lock
#endif
cmpxchgl %ecx,(%rsi)
- clac
jnz 1b
+ clac
movl %eax,(%rdx)
xorl %eax,%eax
movq %rax,PCB_ONFAULT(%r8)
diff --git a/sys/amd64/linux32/linux32_support.s b/sys/amd64/linux32/linux32_support.s
--- a/sys/amd64/linux32/linux32_support.s
+++ b/sys/amd64/linux32/linux32_support.s
@@ -126,16 +126,16 @@
movq $VM_MAXUSER_ADDRESS-4,%rax
cmpq %rax,%rsi
ja futex_fault
+ stac
movl (%rsi),%eax
1: movl %eax,%ecx
orl %edi,%ecx
- stac
#ifdef SMP
lock
#endif
cmpxchgl %ecx,(%rsi)
- clac
jnz 1b
+ clac
movl %eax,(%rdx)
xorl %eax,%eax
movq %rax,PCB_ONFAULT(%r8)
@@ -169,15 +169,15 @@
cmpq %rax,%rsi
ja futex_fault
movl (%rsi),%eax
+ stac
1: movl %eax,%ecx
andl %edi,%ecx
- stac
#ifdef SMP
lock
#endif
cmpxchgl %ecx,(%rsi)
- clac
jnz 1b
+ clac
movl %eax,(%rdx)
xorl %eax,%eax
movq %rax,PCB_ONFAULT(%r8)
@@ -210,16 +210,16 @@
movq $VM_MAXUSER_ADDRESS-4,%rax
cmpq %rax,%rsi
ja futex_fault
+ stac
movl (%rsi),%eax
1: movl %eax,%ecx
xorl %edi,%ecx
- stac
#ifdef SMP
lock
#endif
cmpxchgl %ecx,(%rsi)
- clac
jnz 1b
+ clac
movl %eax,(%rdx)
xorl %eax,%eax
movq %rax,PCB_ONFAULT(%r8)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 24, 5:50 PM (6 h, 4 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35449666
Default Alt Text
D30276.id89305.diff (2 KB)
Attached To
Mode
D30276: linux: Fix SMAP-enabled futex routines
Attached
Detach File
Event Timeline
Log In to Comment