6846a68073
atomic_fetchadd_32. Without it gcc would use it as input register for v and sometimes generate following code for function call like atomic_fetchadd_32(&(fp)->f_count, -1): 801238b4: 2402ffff li v0,-1 801238b8: c2230018 ll v1,24(s1) 801238bc: 00431021 addu v0,v0,v1 801238c0: e2220018 sc v0,24(s1) 801238c4: 1040fffc beqz v0,801238b8 <dupfdopen+0x2e8> 801238c8: 00000000 nop Which is definitly wrong because if sc fails v0 is set to 0 and previous value of -1 is overriden hence whole operation turns to bogus |
||
---|---|---|
.. | ||
_bus_octeon.h | ||
_bus.h | ||
_inttypes.h | ||
_limits.h | ||
_stdint.h | ||
_types.h | ||
archtype.h | ||
asm.h | ||
asmacros.h | ||
atomic.h | ||
bootinfo.h | ||
bswap.h | ||
bus_dma.h | ||
bus.h | ||
cache_mipsNN.h | ||
cache_r4k.h | ||
cache.h | ||
clock.h | ||
clockvar.h | ||
cpu.h | ||
cpufunc.h | ||
cpuinfo.h | ||
cpuregs.h | ||
cputypes.h | ||
db_machdep.h | ||
defs.h | ||
elf.h | ||
endian.h | ||
exec.h | ||
float.h | ||
floatingpoint.h | ||
fpu.h | ||
frame.h | ||
gdb_machdep.h | ||
hwfunc.h | ||
ieee.h | ||
ieeefp.h | ||
in_cksum.h | ||
intr_machdep.h | ||
iodev.h | ||
kdb.h | ||
limits.h | ||
locore.h | ||
md_var.h | ||
memdev.h | ||
metadata.h | ||
minidump.h | ||
mips_opcode.h | ||
mp_watchdog.h | ||
mutex.h | ||
param.h | ||
pcb.h | ||
pci_cfgreg.h | ||
pcpu.h | ||
pltfm.h | ||
pmap.h | ||
pmc_mdep.h | ||
ppireg.h | ||
proc.h | ||
profile.h | ||
psl.h | ||
pte.h | ||
ptrace.h | ||
queue.h | ||
reg.h | ||
regdef.h | ||
regnum.h | ||
reloc.h | ||
resource.h | ||
rm7000.h | ||
runq.h | ||
segments.h | ||
setjmp.h | ||
sf_buf.h | ||
sigframe.h | ||
signal.h | ||
smp.h | ||
stdarg.h | ||
sysarch.h | ||
timerreg.h | ||
trap.h | ||
ucontext.h | ||
varargs.h | ||
vmparam.h |