More warnings cleanup, restored RT test build application.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14658 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
6975e6673e
commit
e70bd5536f
|
@ -179,7 +179,7 @@ struct port_context {
|
||||||
|
|
||||||
#define APUSH(p, a) do { \
|
#define APUSH(p, a) do { \
|
||||||
(p) -= sizeof(void *); \
|
(p) -= sizeof(void *); \
|
||||||
*(void **)(p) = (void*)(a); \
|
*(void **)(void *)(p) = (void*)(a); \
|
||||||
} while (false)
|
} while (false)
|
||||||
|
|
||||||
/* Darwin requires the stack to be aligned to a 16-byte boundary at
|
/* Darwin requires the stack to be aligned to a 16-byte boundary at
|
||||||
|
@ -187,7 +187,7 @@ struct port_context {
|
||||||
* to save MMX registers). This aligns to 'mod' module 16, so that we'll end
|
* to save MMX registers). This aligns to 'mod' module 16, so that we'll end
|
||||||
* up with the right alignment after pushing the args. */
|
* up with the right alignment after pushing the args. */
|
||||||
#define AALIGN(p, mask, mod) \
|
#define AALIGN(p, mask, mod) \
|
||||||
p = (void *)((((uint32_t)(p) - (uint32_t)(mod)) & ~(uint32_t)(mask)) + (uint32_t)(mod)) \
|
p = (void *)((((uint32_t)(p) - (uint32_t)(mod)) & ~(uint32_t)(mask)) + (uint32_t)(mod))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Platform dependent part of the @p chThdCreateI() API.
|
* @brief Platform dependent part of the @p chThdCreateI() API.
|
||||||
|
@ -204,12 +204,12 @@ struct port_context {
|
||||||
APUSH(esp, pf); \
|
APUSH(esp, pf); \
|
||||||
APUSH(esp, 0); \
|
APUSH(esp, 0); \
|
||||||
esp -= sizeof(struct port_intctx); \
|
esp -= sizeof(struct port_intctx); \
|
||||||
((struct port_intctx *)esp)->eip = (void *)_port_thread_start; \
|
((struct port_intctx *)(void *)esp)->eip = (void *)_port_thread_start; \
|
||||||
((struct port_intctx *)esp)->ebx = NULL; \
|
((struct port_intctx *)(void *)esp)->ebx = NULL; \
|
||||||
((struct port_intctx *)esp)->edi = NULL; \
|
((struct port_intctx *)(void *)esp)->edi = NULL; \
|
||||||
((struct port_intctx *)esp)->esi = NULL; \
|
((struct port_intctx *)(void *)esp)->esi = NULL; \
|
||||||
((struct port_intctx *)esp)->ebp = (void *)savebp; \
|
((struct port_intctx *)(void *)esp)->ebp = (void *)savebp; \
|
||||||
(tp)->ctx.sp = (struct port_intctx *)esp; \
|
(tp)->ctx.sp = (struct port_intctx *)(void *)esp; \
|
||||||
/*lint -restore*/ \
|
/*lint -restore*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
test_execute((BaseSequentialStream *)&CD1, &rt_test_suite);
|
test_execute((BaseSequentialStream *)&CD1, &rt_test_suite);
|
||||||
test_execute((BaseSequentialStream *)&CD1, &oslib_test_suite);
|
test_execute((BaseSequentialStream *)&CD1, &oslib_test_suite);
|
||||||
if (test_global_fail)
|
if (chtest.global_fail)
|
||||||
exit(1);
|
exit(1);
|
||||||
else
|
else
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
Loading…
Reference in New Issue