summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorivmai <ivmai>2011-05-19 09:50:49 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:59 +0200
commitc6786d784e3bf88f6a73b1ac93be7452857c7813 (patch)
tree4532f2e702cffa0ccf987d49daa4a74c04482a3b /include
parent8fc448ef91a65f2108e594c6936745807f9925dd (diff)
2011-05-19 Ivan Maidanski <ivmai@mail.ru> (really Jie Liu)
* include/private/gcconfig.h (end, InitStackBottom): Declare extern variable for RTEMS. * include/private/gcconfig.h (DATASTART, DATAEND, STACKBOTTOM): Update (for RTEMS). * include/private/gcconfig.h (DATAEND): Fix a typo in the macro name (for RTEMS). * tests/test.c (CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER): Replace with CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER (for RTEMS).
Diffstat (limited to 'include')
-rw-r--r--include/private/gcconfig.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h
index e223879..5cd3672 100644
--- a/include/private/gcconfig.h
+++ b/include/private/gcconfig.h
@@ -1380,9 +1380,11 @@
# define OS_TYPE "RTEMS"
# include <sys/unistd.h>
extern int etext[];
-# define DATASTART ((ptr_t)((((word) (etext)) + 0xfffff) & ~0xfffff))
-# define DATAENT ((ptr_t)(DATASTART + 0xfffff))
-# define STACKBOTTOM ((ptr_t) 0x03fff000)
+ extern int end[];
+ extern void *InitStackBottom;
+# define DATASTART ((ptr_t)etext)
+# define DATAEND ((ptr_t)end)
+# define STACKBOTTOM ((ptr_t)InitStackBottom)
# endif
# ifdef DOS4GW
# define OS_TYPE "DOS4GW"