debuggers.hg
changeset 19675:97f2e7c576ab
PV-on-HVM: Define atomic_cmpxchg() for old Linux kernels.
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Tue May 26 09:52:59 2009 +0100 (2009-05-26) |
parents | 0f752c773497 |
children | 9535ef2be909 |
files | unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h |
line diff
1.1 --- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h Tue May 26 09:50:35 2009 +0100 1.2 +++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h Tue May 26 09:52:59 2009 +0100 1.3 @@ -157,4 +157,8 @@ typedef irqreturn_t (*irq_handler_t)(int 1.4 #define setup_xen_features xen_setup_features 1.5 #endif 1.6 1.7 +#ifndef atomic_cmpxchg 1.8 +#define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new))) 1.9 #endif 1.10 + 1.11 +#endif