Fixes barrier() and LOCK_PREFIX
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 31 Dec 2014 04:10:22 +0000 (23:10 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 31 Dec 2014 18:03:10 +0000 (13:03 -0500)
commit99760401e2313606082c4213f4c1f67383b2e7c6
tree9529d43a0db1d329f4a863b6255ba7086d889ddb
parent28d2570dd0833e9356f05475ca8354ad1435ddaa
Fixes barrier() and LOCK_PREFIX

Linux has barrier(), which is a cmb() on Akaros.  LOCK_PREFIX is just "lock ".
Maybe when compiling for uniprocessors we would #define that to be "" to avoid
the instruction overhead.
kern/arch/x86/bitops.h
kern/src/oprofile/buffer_sync.c