diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-04-11 12:38:38 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-04-11 12:38:38 +0000 |
commit | 2101b9bd4185835d4a70d92233c1762bf3722cde (patch) | |
tree | 823cbf5161a8fd7c152b7bf307c997affc89570c /firmware/system.h | |
parent | 369ba01afd31d021f16f5c8b68e773f043101ca0 (diff) |
Added TRUE/FALSE, made it work with SIMULATOR
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@78 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/system.h')
-rw-r--r-- | firmware/system.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/system.h b/firmware/system.h index bacf90ad66..1dc8b2afdd 100644 --- a/firmware/system.h +++ b/firmware/system.h @@ -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) { |