summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorivmai <ivmai>2011-04-11 22:20:05 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:57 +0200
commit109f09d2849db75ea51452dff1169f4418ac74b5 (patch)
tree863b9651c106a210ef1deaa5a97a2133f9fa638d /tests
parent5867334b7e53d5d5695bbe567665af9330cf7c5d (diff)
2011-04-11 Ivan Maidanski <ivmai@mail.ru> (really Jie Liu)
* mach_dep.c (NO_GETCONTEXT); Define for RTEMS. * mach_dep.c (GC_with_callee_saves_pushed): Don't call __builtin_unwind_init() for RTEMS; use setjmp() without the leading underscore (for RTEMS). * tests/test.c (BIG): Use smaller value for RTEMS. * tests/test.c (main): Customize for RTEMS.
Diffstat (limited to 'tests')
-rw-r--r--tests/test.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/tests/test.c b/tests/test.c
index 654332e..63a1052 100644
--- a/tests/test.c
+++ b/tests/test.c
@@ -539,7 +539,7 @@ void *GC_CALLBACK reverse_test_inner(void *data)
# elif defined(PCR)
/* PCR default stack is 100K. Stack frames are up to 120 bytes. */
# define BIG 700
-# elif defined(MSWINCE)
+# elif defined(MSWINCE) || defined(RTEMS)
/* WinCE only allows 64K stacks */
# define BIG 500
# elif defined(OSF1)
@@ -1377,12 +1377,21 @@ void GC_CALLBACK warn_proc(char *msg, GC_word p)
# define WINMAIN_LPTSTR LPSTR
#endif
-#if !defined(PCR) \
- && !defined(GC_WIN32_THREADS) && !defined(GC_PTHREADS) \
+#if !defined(PCR) && !defined(GC_WIN32_THREADS) && !defined(GC_PTHREADS) \
|| defined(LINT)
#if defined(MSWIN32) && !defined(__MINGW32__) || defined(MSWINCE)
int APIENTRY WinMain(HINSTANCE instance, HINSTANCE prev,
WINMAIN_LPTSTR cmd, int n)
+#elif defined(RTEMS)
+# include <bsp.h>
+# define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
+# define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+# define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+# define CONFIGURE_MAXIMUM_TASKS 1
+# define CONFIGURE_INIT
+# define CONFIGURE_INIT_TASK_STACK_SIZE (64*1024)
+# include <rtems/confdefs.h>
+ rtems_task Init(rtems_task_argument ignord)
#else
int main(void)
#endif