Subversion Repositories HelenOS

Rev

Rev 2082 | Rev 3381 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2082 Rev 2089
Line 36... Line 36...
36
#define KERN_ia32_ATOMIC_H_
36
#define KERN_ia32_ATOMIC_H_
37
 
37
 
38
#include <arch/types.h>
38
#include <arch/types.h>
39
#include <arch/barrier.h>
39
#include <arch/barrier.h>
40
#include <preemption.h>
40
#include <preemption.h>
41
#include <typedefs.h>
-
 
42
 
41
 
43
static inline void atomic_inc(atomic_t *val) {
42
static inline void atomic_inc(atomic_t *val) {
44
#ifdef CONFIG_SMP
43
#ifdef CONFIG_SMP
45
    asm volatile ("lock incl %0\n" : "=m" (val->count));
44
    asm volatile ("lock incl %0\n" : "=m" (val->count));
46
#else
45
#else