Constantine Gavrilov
b7fd1edd2c
[PATCH] x86: fix sigaddset() inline asm memory constraint
...
Due to incomplete memory constraints, gcc would miscompile code with
sigaddset on i386 if sig arg was const.
A quote form Jakub to make the issue clear:
"You need either
__asm__("btsl %1,%0" : "+m"(*set) : "Ir"(_sig-1) : "cc");
or
__asm__("btsl %1,%0" : "=m"(*set) : "Ir"(_sig-1), "m"(*set) : "cc");
because the btsl instruction doesn't just set the memory to some
value, but needs to read its previous content as well. If you don't
tell that fact to GCC, GCC is of course free to optimize as if the asm
was just setting the value and not depended on the previous value."
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-17 08:42:26 -08:00
..
acpi
asm-alpha
[PATCH] atomic: inc_not_zero
2005-11-13 18:14:16 -08:00
asm-arm
Merge master.kernel.org:/home/rmk/linux-2.6-arm
2005-11-13 18:17:54 -08:00
asm-arm26
[PATCH] atomic: inc_not_zero
2005-11-13 18:14:16 -08:00
asm-cris
[PATCH] atomic: inc_not_zero
2005-11-13 18:14:16 -08:00
asm-frv
[PATCH] atomic: inc_not_zero
2005-11-13 18:14:16 -08:00
asm-generic
Merge x86-64 update from Andi
2005-11-14 19:56:02 -08:00
asm-h8300
[PATCH] atomic: inc_not_zero
2005-11-13 18:14:16 -08:00
asm-i386
[PATCH] x86: fix sigaddset() inline asm memory constraint
2005-11-17 08:42:26 -08:00
asm-ia64
[PATCH] atomic: inc_not_zero
2005-11-13 18:14:16 -08:00
asm-m32r
asm-m68k
[PATCH] atomic: inc_not_zero
2005-11-13 18:14:16 -08:00
asm-m68knommu
[PATCH] atomic: inc_not_zero
2005-11-13 18:14:16 -08:00
asm-mips
[PATCH] atomic: inc_not_zero
2005-11-13 18:14:16 -08:00
asm-parisc
[PATCH] atomic: inc_not_zero
2005-11-13 18:14:16 -08:00
asm-powerpc
[PATCH] powerpc: Make the vDSO functions set error code ( #2 )
2005-11-16 14:05:11 +11:00
asm-ppc
[PATCH] powerpc: replace page_to_virt() with lowmem_page_address() for Book-E
2005-11-16 13:52:12 +11:00
asm-ppc64
[PATCH] powerpc: pci_64 fixes & cleanups
2005-11-16 13:29:46 +11:00
asm-s390
[PATCH] atomic: inc_not_zero
2005-11-13 18:14:16 -08:00
asm-sh
[PATCH] atomic: inc_not_zero
2005-11-13 18:14:16 -08:00
asm-sh64
[PATCH] atomic: inc_not_zero
2005-11-13 18:14:16 -08:00
asm-sparc
[PATCH] atomic: inc_not_zero
2005-11-13 18:14:16 -08:00
asm-sparc64
[PATCH] atomic: inc_not_zero
2005-11-13 18:14:16 -08:00
asm-um
asm-v850
[PATCH] v850: use generic hardirq code
2005-11-15 08:59:20 -08:00
asm-x86_64
Merge x86-64 update from Andi
2005-11-14 19:56:02 -08:00
asm-xtensa
[PATCH] atomic: inc_not_zero
2005-11-13 18:14:16 -08:00
keys
linux
[DVB]: Add compat ioctl handling.
2005-11-16 00:52:57 -08:00
math-emu
media
[PATCH] v4l: (945) adds a new include for internal v4l2 ioctls and api
2005-11-13 18:14:19 -08:00
mtd
net
[TCP]: More spelling fixes.
2005-11-15 15:17:10 -08:00
pcmcia
rdma
[IB] uverbs: have kernel return QP capabilities
2005-11-10 10:22:50 -08:00
rxrpc
scsi
sound
video