From 2101b9bd4185835d4a70d92233c1762bf3722cde Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 11 Apr 2002 12:38:38 +0000 Subject: [PATCH] Added TRUE/FALSE, made it work with SIMULATOR git-svn-id: svn://svn.rockbox.org/rockbox/trunk@78 a1c6a512-1295-4272-9138-f99709370657 --- firmware/system.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 +#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) {