Added TRUE/FALSE, made it work with SIMULATOR

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@78 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-04-11 12:38:38 +00:00
parent 369ba01afd
commit 2101b9bd41

View file

@ -21,6 +21,9 @@
#define __SYSTEM_H__
#include <sh7034.h>
#define TRUE 1
#define FALSE 0
#define KB *1024
#define MB *1024 KB
#define GB *1024 MB
@ -183,6 +186,8 @@ extern char __swap_bit[256];
#define swap_bit(byte) \
__swap_bit[byte]
#ifndef SIMULATOR
static inline short swabHI (short value)
/*
result[15..8] = value[ 7..0];
@ -234,6 +239,8 @@ static inline void cli (void)
asm volatile ("ldc\t%0,sr" : : "r"(15<<4));
}
#endif
/* Compare And Swap */
static inline int cas (volatile int *pointer,int requested_value,int new_value)
{