summaryrefslogtreecommitdiff
path: root/cgrconst.h
diff options
context:
space:
mode:
authorJohn van Groningen2011-11-24 11:58:21 +0000
committerJohn van Groningen2011-11-24 11:58:21 +0000
commite9236a0d7a2f1cc2b71c399f83c53413f6c1860b (patch)
tree8332826365bb82881684636aa8bfbb3c0acf03d1 /cgrconst.h
parentgenerate thread safe code on 64 bit windows if THREAD64 is defined (diff)
generate thread safe code on 32 bit windows if THREAD32 is defined
Diffstat (limited to 'cgrconst.h')
-rw-r--r--cgrconst.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cgrconst.h b/cgrconst.h
index 9c87cca..77d45a2 100644
--- a/cgrconst.h
+++ b/cgrconst.h
@@ -32,7 +32,11 @@ enum { REGISTER_FP0, REGISTER_FP1, REGISTER_FP2, REGISTER_FP3,
# define N_FLOAT_PARAMETER_REGISTERS 8
# else
# define A_STACK_POINTER REGISTER_A3
+# ifndef THREAD32
# define HEAP_POINTER REGISTER_A4
+# else
+# define HEAP_POINTER REGISTER_A2
+# endif
# define B_STACK_POINTER REGISTER_A5
# define N_ADDRESS_PARAMETER_REGISTERS 2
# define N_DATA_PARAMETER_REGISTERS 2