3218357c94
From Richard Sandiford <richard@codesourcery.com>: This patch caused a miscompilation of the restore_gp_regs() block in restore_sigcontext(). This was in a 32-bit kernel compiled with GCC CVS head. restore_gp_regs() copies 64-bit user fields into 32-bit variables, and in this combination, the new __get_user_asm_ll32() clobbers too many registers. It says: /* * Get a long long 64 using 32 bit registers. */ { \ __asm__ __volatile__( \ "1: lw %1, (%3) \n" \ "2: lw %D1, 4(%3) \n" \ " move %0, $0 \n" \ "3: .section .fixup,\"ax\" \n" \ "4: li %0, %4 \n" \ " move %1, $0 \n" \ " move %D1, $0 \n" \ " j 3b \n" \ " .previous \n" \ " .section __ex_table,\"a\" \n" \ " " __UA_ADDR " 1b, 4b \n" \ " " __UA_ADDR " 2b, 4b \n" \ " .previous \n" \ : "=r" (__gu_err), "=&r" (val) \ : "0" (0), "r" (addr), "i" (-EFAULT)); \ } and this requires val (%1) to be a 64-bit value. In the case I saw, gcc was using $3 for the 32-bit val, and wasn't expecting $4 to be clobbered. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> |
||
---|---|---|
.. | ||
arc | ||
ddb5xxx | ||
dec | ||
galileo-boards | ||
gcc | ||
ip32 | ||
it8172 | ||
jmr3927 | ||
lasat | ||
mach-atlas | ||
mach-au1x00 | ||
mach-cobalt | ||
mach-db1x00 | ||
mach-ddb5074 | ||
mach-dec | ||
mach-ev64120 | ||
mach-ev96100 | ||
mach-generic | ||
mach-ip22 | ||
mach-ip27 | ||
mach-ip32 | ||
mach-ja | ||
mach-jazz | ||
mach-jmr3927 | ||
mach-lasat | ||
mach-mips | ||
mach-ocelot | ||
mach-ocelot3 | ||
mach-pb1x00 | ||
mach-pnx8550 | ||
mach-qemu | ||
mach-rm200 | ||
mach-sibyte | ||
mach-sim | ||
mach-yosemite | ||
mips-boards | ||
pci | ||
sgi | ||
sibyte | ||
sn | ||
tx4927 | ||
tx4938 | ||
vr41xx | ||
xtalk | ||
8253pit.h | ||
a.out.h | ||
abi.h | ||
addrspace.h | ||
asm.h | ||
asmmacro-32.h | ||
asmmacro-64.h | ||
asmmacro.h | ||
atomic.h | ||
auxvec.h | ||
bcache.h | ||
bitops.h | ||
bootinfo.h | ||
branch.h | ||
break.h | ||
bug.h | ||
bugs.h | ||
byteorder.h | ||
cache.h | ||
cachectl.h | ||
cacheflush.h | ||
cacheops.h | ||
checksum.h | ||
compat.h | ||
compiler.h | ||
cpu-features.h | ||
cpu-info.h | ||
cpu.h | ||
cputime.h | ||
current.h | ||
ddb5074.h | ||
debug.h | ||
delay.h | ||
div64.h | ||
dma-mapping.h | ||
dma.h | ||
ds1286.h | ||
dsp.h | ||
elf.h | ||
emergency-restart.h | ||
errno.h | ||
fcntl.h | ||
fixmap.h | ||
floppy.h | ||
fpregdef.h | ||
fpu_emulator.h | ||
fpu.h | ||
futex.h | ||
gdb-stub.h | ||
gfx.h | ||
gt64120.h | ||
gt64240.h | ||
hardirq.h | ||
hazards.h | ||
highmem.h | ||
hw_irq.h | ||
i8259.h | ||
ide.h | ||
inst.h | ||
interrupt.h | ||
inventory.h | ||
io.h | ||
ioctl.h | ||
ioctls.h | ||
ipc.h | ||
ipcbuf.h | ||
irq_cpu.h | ||
irq.h | ||
isadep.h | ||
it8712.h | ||
jazz.h | ||
jazzdma.h | ||
kmap_types.h | ||
linkage.h | ||
local.h | ||
m48t35.h | ||
m48t37.h | ||
marvell.h | ||
mc146818-time.h | ||
mc146818rtc.h | ||
mipsmtregs.h | ||
mipsprom.h | ||
mipsregs.h | ||
mman.h | ||
mmu_context.h | ||
mmu.h | ||
mmzone.h | ||
module.h | ||
msc01_ic.h | ||
msgbuf.h | ||
mutex.h | ||
namei.h | ||
nile4.h | ||
numnodes.h | ||
paccess.h | ||
page.h | ||
param.h | ||
parport.h | ||
pci.h | ||
percpu.h | ||
pgalloc.h | ||
pgtable-32.h | ||
pgtable-64.h | ||
pgtable-bits.h | ||
pgtable.h | ||
pmon.h | ||
poll.h | ||
posix_types.h | ||
prctl.h | ||
prefetch.h | ||
processor.h | ||
ptrace.h | ||
qemu.h | ||
r4kcache.h | ||
reboot.h | ||
reg.h | ||
regdef.h | ||
resource.h | ||
rtc.h | ||
rtlx.h | ||
scatterlist.h | ||
sections.h | ||
segment.h | ||
semaphore.h | ||
sembuf.h | ||
serial.h | ||
setup.h | ||
sgialib.h | ||
sgiarcs.h | ||
sgidefs.h | ||
shmbuf.h | ||
shmparam.h | ||
sigcontext.h | ||
siginfo.h | ||
signal.h | ||
sim.h | ||
smp.h | ||
sni.h | ||
socket.h | ||
sockios.h | ||
spinlock_types.h | ||
spinlock.h | ||
stackframe.h | ||
stat.h | ||
statfs.h | ||
string.h | ||
suspend.h | ||
sysmips.h | ||
system.h | ||
termbits.h | ||
termios.h | ||
thread_info.h | ||
time.h | ||
timex.h | ||
titan_dep.h | ||
tlb.h | ||
tlbdebug.h | ||
tlbflush.h | ||
topology.h | ||
traps.h | ||
tx3912.h | ||
types.h | ||
uaccess.h | ||
ucontext.h | ||
unaligned.h | ||
unistd.h | ||
user.h | ||
vga.h | ||
war.h | ||
watch.h | ||
wbflush.h | ||
xor.h | ||
xxs1500.h |