summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/system.h7
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)
{