freebsd-dev/sys/ia64
Marcel Moolenaar f9d9182d64 Work-around a compiler optimization bug, that broke libthr. Massive
inlining resulted in constant propagation to the extend that cmpval
was known to the compiler to be URWLOCK_WRITE_OWNER (= 0x80000000U).
Unfortunately, instead of zero-extending the unsigned constant, it
was sign-extended. As such, the cmpxchg instruction was comparing
0x0000000080000000LU to 0xffffffff80000000LU and obviously didn't
perform the exchange.
But, since the value returned by cmpxhg equalled cmpval (when zero-
extended), the _thr_rtld_lock_release() function thought the exchange
did happen and as such returned as if having released the lock. This
was not the case. Subsequent locking requests found rw_state non-zero
and the thread in question entered the kernel and block indefinitely.

The work-around is to zero-extend by casting to uint64_t.
2008-05-28 16:41:02 +00:00
..
acpica Catch up with ACPI-CA 20070320 import. 2007-03-22 18:16:43 +00:00
compile
conf Make genclock standard on all platforms. 2008-04-21 10:09:55 +00:00
disasm Fix disassembly of the invala, itc, itr and hint instructions 2007-10-16 02:49:40 +00:00
ia32 Rework the PCPU_* (MD) interface: 2007-06-04 21:38:48 +00:00
ia64 Account for IPI_PREEMPT. We don't want to call sched_preempt() with 2008-05-23 19:53:50 +00:00
include Work-around a compiler optimization bug, that broke libthr. Massive 2008-05-28 16:41:02 +00:00
isa BUS_DMA_ISA is left over from Alpha, and is not used in the tree at 2008-03-15 06:44:45 +00:00
pci