aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-03-05 18:55:46 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-03-05 18:55:46 +0000
commit549fe1b7d3a791c2aa112a53bb2c49c2f48fa24e (patch)
treecb083e1372c4c94ae8f13725c1af2193126477d5 /test
parent5976e4f19fe5010d459aa9758c55a60c820a114e (diff)
downloadChibiOS-549fe1b7d3a791c2aa112a53bb2c49c2f48fa24e.tar.gz
ChibiOS-549fe1b7d3a791c2aa112a53bb2c49c2f48fa24e.tar.bz2
ChibiOS-549fe1b7d3a791c2aa112a53bb2c49c2f48fa24e.zip
Fixed bug 2964418.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1712 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test')
-rw-r--r--test/testbmk.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/testbmk.c b/test/testbmk.c
index 9f5f873bf..d25d51d8b 100644
--- a/test/testbmk.c
+++ b/test/testbmk.c
@@ -72,7 +72,9 @@ static msg_t thread1(void *p) {
return 0;
}
+#ifdef __GNUC__
__attribute__((noinline))
+#endif
static unsigned int msg_loop_test(Thread *tp) {
uint32_t n = 0;
@@ -235,9 +237,10 @@ msg_t thread4(void *p) {
static void bmk4_execute(void) {
Thread *tp;
+ uint32_t n;
tp = threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriority()+1, thread4, NULL);
- uint32_t n = 0;
+ n = 0;
test_wait_tick();
test_start_timer(1000);
do {
@@ -497,11 +500,12 @@ static char *bmk9_gettest(void) {
}
static void bmk9_execute(void) {
+ uint32_t n;
static uint8_t ib[16];
static InputQueue iq;
chIQInit(&iq, ib, sizeof(ib), NULL);
- uint32_t n = 0;
+ n = 0;
test_wait_tick();
test_start_timer(1000);
do {