system.h

00001 /*
00002  * Copyright (C) 2001,2002,2003 Philippe Gerum <rpm@xenomai.org>.
00003  *
00004  * RTAI/fusion is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License as published
00006  * by the Free Software Foundation; either version 2 of the License,
00007  * or (at your option) any later version.
00008  *
00009  * RTAI/fusion is distributed in the hope that it will be useful, but
00010  * WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with RTAI/fusion; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00017  * 02111-1307, USA.
00018  */
00019 
00020 #ifndef _RTAI_NUCLEUS_SYSTEM_H
00021 #define _RTAI_NUCLEUS_SYSTEM_H
00022 
00023 #include <memory.h>
00024 #include <string.h>
00025 
00026 static inline unsigned long ffnz (unsigned long ul) {
00027     return ffs((int)ul) - 1;
00028 }
00029 
00030 #ifdef __RTAI_UVM__
00031 #include <nucleus/asm-uvm/system.h>
00032 #else /* !__RTAI_UVM__ */
00033 #include <nucleus/asm/atomic.h>
00034 #include <nucleus/fusion.h>
00035 #endif /* __RTAI_UVM__ */
00036 
00037 #endif /* !_RTAI_NUCLEUS_SYSTEM_H */

Generated on Sat Sep 3 12:32:47 2005 for RTAI Fusion API by  doxygen 1.4.2