Page MenuHomeFreeBSD

D30276.id89305.diff
No OneTemporary

D30276.id89305.diff

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

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)

Event Timeline