view packages/compat/linux/current/include/asm/atomic.h @ 522:726ecf119e30

Add new Linux kernel compatibility package. Not a compatibility layer for Linux applications, but Linux drivers and filesystems. Intended for an updated JFFS2.
author jlarmour
date Wed, 22 Jan 2003 01:10:41 +0000
parents
children
line wrap: on
line source

#ifndef __ASM_ATOMIC_H__
#define __ASM_ATOMIC_H__

#define atomic_t int
#define atomic_inc(atom) (*atom)++
#define atomic_dec(atom) (*atom)--
#define atomic_read(atom) (*atom)


#endif /* __ASM_ATOMIC_H__ */