Looks like a small patch is needed as well to do the right thing on Linux.
authorBruce Momjian <bruce@momjian.us>
Fri, 5 Apr 2002 11:38:13 +0000 (11:38 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 5 Apr 2002 11:38:13 +0000 (11:38 +0000)
commited483bcafffa074d6770edf899ecab0426300b03
tree7f0f39ea5965d6929ff629a2aed1108303002783
parent0b5d674301fff1980944df35a8348b009d8cb3d1
Looks like a small patch is needed as well to do the right thing on Linux.

The patch enables the mips2 ISA for the ll/sc operations, and then restores
it when done.  The kernel/libc emulation code will take over on CPUs without
ll/sc, and on CPUs with it, it'll use the operations provided by the CPU.

Combined with the earlier fix (removing -mips2), postgresql builds again on
mips and mipsel.  The patch is against 7.2-7.

Oliver Elphick
src/backend/storage/lmgr/s_lock.c