Prevents spinning in "Activations.run" when a thread is blocked,
then awakened, and added to the sequence already being traversed.
By adding the awakened event to the front, we don't traverse it
again in the same iteration.

Signed-off-by: James Bielman <jamesjb@galois.com>
Acked-by: Anil Madhavapeddy <anil@recoil.org>
Merge branch 'master' of github.com:mirage/mirage-platform
bump version, mark 0.9.3
Add atomic load/store bindings for ring counters.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge pull request #52 from djs55/forupstream/atomic-load-store

Add atomic load/store bindings for ring counters.
Exposed memory barriers in the Xenctrl module.
Merge pull request #53 from vbmithr/master

Exposed memory barriers in the Xenctrl module.
Adapted Mirage to the unified xenstore.

Conflicts:
	xen/lib/netif.ml
Fixed compilation.
Exposed the XenStore transport over Mirage.
Added Xenctrl in the mlpack.
Added atomic_stubs.c for gcc's atomic primitives.
Manage MAC addresses with ocaml-ipaddr.
Now we depend on ipaddr.
atomic_stubs.c are now safe.
Merge pull request #55 from vbmithr/new-xs-2

Adapted to the new ocaml-xenstore + some C bindings necessary for vchan.
Fix compilation with new ocaml-tuntap.
Update to 0.9.4
Initial import of the kFreeBSD backend.