diff options
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 @@ | |||
21 | #define __SYSTEM_H__ | 21 | #define __SYSTEM_H__ |
22 | #include <sh7034.h> | 22 | #include <sh7034.h> |
23 | 23 | ||
24 | #define TRUE 1 | ||
25 | #define FALSE 0 | ||
26 | |||
24 | #define KB *1024 | 27 | #define KB *1024 |
25 | #define MB *1024 KB | 28 | #define MB *1024 KB |
26 | #define GB *1024 MB | 29 | #define GB *1024 MB |
@@ -183,6 +186,8 @@ extern char __swap_bit[256]; | |||
183 | #define swap_bit(byte) \ | 186 | #define swap_bit(byte) \ |
184 | __swap_bit[byte] | 187 | __swap_bit[byte] |
185 | 188 | ||
189 | #ifndef SIMULATOR | ||
190 | |||
186 | static inline short swabHI (short value) | 191 | static inline short swabHI (short value) |
187 | /* | 192 | /* |
188 | result[15..8] = value[ 7..0]; | 193 | result[15..8] = value[ 7..0]; |
@@ -234,6 +239,8 @@ static inline void cli (void) | |||
234 | asm volatile ("ldc\t%0,sr" : : "r"(15<<4)); | 239 | asm volatile ("ldc\t%0,sr" : : "r"(15<<4)); |
235 | } | 240 | } |
236 | 241 | ||
242 | #endif | ||
243 | |||
237 | /* Compare And Swap */ | 244 | /* Compare And Swap */ |
238 | static inline int cas (volatile int *pointer,int requested_value,int new_value) | 245 | static inline int cas (volatile int *pointer,int requested_value,int new_value) |
239 | { | 246 | { |