Commit 263061d9 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

common: Move cmpxchng.h in

travis-ci: success for Common headers
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent e2554b90
...@@ -11,7 +11,7 @@ typedef struct { ...@@ -11,7 +11,7 @@ typedef struct {
int counter; int counter;
} atomic_t; } atomic_t;
#include "asm/cmpxchg.h" #include "common/arch/ppc64/asm/cmpxchg.h"
#define PPC_ATOMIC_ENTRY_BARRIER "lwsync \n" #define PPC_ATOMIC_ENTRY_BARRIER "lwsync \n"
#define PPC_ATOMIC_EXIT_BARRIER "sync \n" #define PPC_ATOMIC_EXIT_BARRIER "sync \n"
......
#ifndef __CR_ATOMIC_H__ #ifndef __CR_ATOMIC_H__
#define __CR_ATOMIC_H__ #define __CR_ATOMIC_H__
#include "asm/cmpxchg.h" #include "common/arch/x86/asm/cmpxchg.h"
#define LOCK_PREFIX "\n\tlock; "
typedef struct { typedef struct {
int counter; int counter;
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
#include <stdint.h> #include <stdint.h>
#define LOCK_PREFIX "\n\tlock; "
#define __X86_CASE_B 1 #define __X86_CASE_B 1
#define __X86_CASE_W 2 #define __X86_CASE_W 2
#define __X86_CASE_L 4 #define __X86_CASE_L 4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment