vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

commit e8d8692468c5778918ea1dbd0ef3a082a20e3b35
parent 1f7229232cc9f00a4c1f840ae2ea0f4cd20fcabd
Author: rminnich@gmail.com <none@none>
Date:   Mon, 24 Jan 2011 09:04:20 -0800

clean up and force 32 bit compiles

Diffstat:
src/9vx/gccmagic/cmpswap.c | 5+----
src/Makefrag | 2+-
2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/9vx/gccmagic/cmpswap.c b/src/9vx/gccmagic/cmpswap.c @@ -1,10 +1,7 @@ int oscmpswap(long* addr, long oldval, long newval) { - bool res; - print("oscmpswap: addr %p, *addr %ld, oldval %ld, newval %ld\n", - addr, *addr, oldval, newval); + int res; res = __sync_bool_compare_and_swap(addr, oldval, newval); - print("oscmpswap: result %d\n", res); if (res) return 1; return 0; diff --git a/src/Makefrag b/src/Makefrag @@ -10,7 +10,7 @@ ifeq ($(OS),darwin) endif # Host environment compiler options -HOST_CC := $(CC) -fno-inline -arch i386 -m32 -DARCH=i386 +HOST_CC := $(CC) -fno-inline -m32 -DARCH=i386 ifeq ($(OS),darwin) HOST_CC := $(HOST_CC) -D_XOPEN_SOURCE endif