ia64/xen-unstable

view extras/mini-os/Makefile @ 5867:932fc8a1b38d

# HG changeset patch
# User Rusty Russell <rusty@rustcorp.com.au>
# Node ID a92163adedcfcff0d05c965d09da747f3c8aa13e
# Parent 63ab20781afa311300f3a8e832744292014ea7f6

Remove ill-conceived concept of watches blocking reply on connection which did write/mkdir/rm/setperm etc.
This causes deadlocks in real life, and I can't see a sane way of avoiding them: it is reasonable for someone to ignore watch notifications while doing other actions, and that means that we can do other writes. These writes can block pending other watchers; if one of these is the process blocked awaiting our ack, we deadlock.

diff -r 63ab20781afa -r a92163adedcf tools/xenstore/xenstored_core.c
author cl349@firebug.cl.cam.ac.uk
date Tue Jul 26 13:11:01 2005 +0000 (2005-07-26)
parents a83ac0806d6b
children df1348e72390 cdfa7dd00c44 b2f4823b6ff0
line source
1 debug ?= y
3 include $(CURDIR)/../../Config.mk
5 # Set TARGET_ARCH
6 override TARGET_ARCH := $(XEN_TARGET_ARCH)
8 # NB. '-Wcast-qual' is nasty, so I omitted it.
9 CFLAGS := -fno-builtin -Wall -Werror -Iinclude/ -Wredundant-decls -Wno-format
10 CFLAGS += -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline
12 ifeq ($(TARGET_ARCH),x86_32)
13 CFLAGS += -m32 -march=i686
14 LDFLAGS := -m elf_i386
15 endif
17 ifeq ($(TARGET_ARCH),x86_64)
18 CFLAGS += -m64 -mno-red-zone -fpic -fno-reorder-blocks
19 CFLAGS += -fno-asynchronous-unwind-tables
20 LDFLAGS := -m elf_x86_64
21 endif
23 ifeq ($(debug),y)
24 CFLAGS += -g
25 else
26 CFLAGS += -O3
27 endif
29 TARGET := mini-os
31 OBJS := $(TARGET_ARCH).o
32 OBJS += $(patsubst %.c,%.o,$(wildcard *.c))
33 OBJS += $(patsubst %.c,%.o,$(wildcard lib/*.c))
35 HDRS := $(wildcard include/*.h)
36 HDRS += $(wildcard include/xen/*.h)
38 default: $(TARGET)
40 xen-public:
41 [ -e include/xen ] || ln -sf ../../../xen/include/public include/xen
43 $(TARGET): xen-public $(OBJS)
44 $(LD) -N -T minios-$(TARGET_ARCH).lds $(OBJS) -o $@.elf
45 gzip -f -9 -c $@.elf >$@.gz
47 clean:
48 find . -type f -name '*.o' | xargs rm -f
49 rm -f *.o *~ core $(TARGET).elf $(TARGET).raw $(TARGET) $(TARGET).gz
50 find . -type l | xargs rm -f
52 %.o: %.c $(HDRS) Makefile
53 $(CC) $(CFLAGS) -c $< -o $@
55 %.o: %.S $(HDRS) Makefile
56 $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@