git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14653 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
9fdafd19bf
commit
94e1124a44
|
@ -136,7 +136,7 @@ ASMXSRC = $(ALLXASMSRC)
|
||||||
INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC)
|
INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC)
|
||||||
|
|
||||||
# Define C warning options here.
|
# Define C warning options here.
|
||||||
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
|
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes -Wcast-align=strict
|
||||||
|
|
||||||
# Define C++ warning options here.
|
# Define C++ warning options here.
|
||||||
CPPWARN = -Wall -Wextra -Wundef
|
CPPWARN = -Wall -Wextra -Wundef
|
||||||
|
|
|
@ -136,7 +136,7 @@ ASMXSRC = $(ALLXASMSRC)
|
||||||
INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC)
|
INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC)
|
||||||
|
|
||||||
# Define C warning options here.
|
# Define C warning options here.
|
||||||
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
|
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes -Wcast-align=strict
|
||||||
|
|
||||||
# Define C++ warning options here.
|
# Define C++ warning options here.
|
||||||
CPPWARN = -Wall -Wextra -Wundef
|
CPPWARN = -Wall -Wextra -Wundef
|
||||||
|
|
|
@ -137,7 +137,7 @@ ASMXSRC = $(ALLXASMSRC)
|
||||||
INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC)
|
INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC)
|
||||||
|
|
||||||
# Define C warning options here.
|
# Define C warning options here.
|
||||||
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
|
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes -Wcast-align=strict
|
||||||
|
|
||||||
# Define C++ warning options here.
|
# Define C++ warning options here.
|
||||||
CPPWARN = -Wall -Wextra -Wundef
|
CPPWARN = -Wall -Wextra -Wundef
|
||||||
|
|
|
@ -136,7 +136,7 @@ ASMXSRC = $(ALLXASMSRC)
|
||||||
INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC)
|
INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC)
|
||||||
|
|
||||||
# Define C warning options here.
|
# Define C warning options here.
|
||||||
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
|
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes -Wcast-align=strict
|
||||||
|
|
||||||
# Define C++ warning options here.
|
# Define C++ warning options here.
|
||||||
CPPWARN = -Wall -Wextra -Wundef
|
CPPWARN = -Wall -Wextra -Wundef
|
||||||
|
|
|
@ -329,8 +329,8 @@ struct port_context {
|
||||||
* by an @p port_intctx structure.
|
* by an @p port_intctx structure.
|
||||||
*/
|
*/
|
||||||
#define PORT_SETUP_CONTEXT(tp, wbase, wtop, pf, arg) do { \
|
#define PORT_SETUP_CONTEXT(tp, wbase, wtop, pf, arg) do { \
|
||||||
(tp)->ctx.sp = (struct port_intctx *)((uint8_t *)(wtop) - \
|
(tp)->ctx.sp = (struct port_intctx *)(void *) \
|
||||||
sizeof (struct port_intctx)); \
|
((uint8_t *)(wtop) - sizeof (struct port_intctx)); \
|
||||||
(tp)->ctx.sp->r4 = (uint32_t)(pf); \
|
(tp)->ctx.sp->r4 = (uint32_t)(pf); \
|
||||||
(tp)->ctx.sp->r5 = (uint32_t)(arg); \
|
(tp)->ctx.sp->r5 = (uint32_t)(arg); \
|
||||||
(tp)->ctx.sp->lr = (uint32_t)__port_thread_start; \
|
(tp)->ctx.sp->lr = (uint32_t)__port_thread_start; \
|
||||||
|
|
|
@ -534,8 +534,8 @@ struct port_context {
|
||||||
*/
|
*/
|
||||||
#define PORT_SETUP_CONTEXT(tp, wbase, wtop, pf, arg) do { \
|
#define PORT_SETUP_CONTEXT(tp, wbase, wtop, pf, arg) do { \
|
||||||
PORT_SETUP_CONTEXT_BASEPRI_NS(tp); \
|
PORT_SETUP_CONTEXT_BASEPRI_NS(tp); \
|
||||||
(tp)->ctx.sp = (struct port_intctx *)((uint8_t *)(wtop) - \
|
(tp)->ctx.sp = (struct port_intctx *)(void *) \
|
||||||
sizeof (struct port_intctx)); \
|
((uint8_t *)(wtop) - sizeof (struct port_intctx)); \
|
||||||
(tp)->ctx.basepri = CORTEX_BASEPRI_KERNEL; \
|
(tp)->ctx.basepri = CORTEX_BASEPRI_KERNEL; \
|
||||||
(tp)->ctx.r5 = (uint32_t)(arg); \
|
(tp)->ctx.r5 = (uint32_t)(arg); \
|
||||||
(tp)->ctx.r4 = (uint32_t)(pf); \
|
(tp)->ctx.r4 = (uint32_t)(pf); \
|
||||||
|
|
|
@ -427,8 +427,8 @@ struct port_context {
|
||||||
* by an @p port_intctx structure.
|
* by an @p port_intctx structure.
|
||||||
*/
|
*/
|
||||||
#define PORT_SETUP_CONTEXT(tp, wbase, wtop, pf, arg) do { \
|
#define PORT_SETUP_CONTEXT(tp, wbase, wtop, pf, arg) do { \
|
||||||
(tp)->ctx.sp = (struct port_intctx *)((uint8_t *)(wtop) - \
|
(tp)->ctx.sp = (struct port_intctx *)(void *) \
|
||||||
sizeof (struct port_intctx)); \
|
((uint8_t *)(wtop) - sizeof (struct port_intctx)); \
|
||||||
(tp)->ctx.sp->r4 = (uint32_t)(pf); \
|
(tp)->ctx.sp->r4 = (uint32_t)(pf); \
|
||||||
(tp)->ctx.sp->r5 = (uint32_t)(arg); \
|
(tp)->ctx.sp->r5 = (uint32_t)(arg); \
|
||||||
(tp)->ctx.sp->lr = (uint32_t)__port_thread_start; \
|
(tp)->ctx.sp->lr = (uint32_t)__port_thread_start; \
|
||||||
|
|
|
@ -94,8 +94,8 @@ thread_t *chThdCreateFromHeap(memory_heap_t *heapp, size_t size,
|
||||||
thread_descriptor_t td = THD_DESCRIPTOR(name, wbase, wend, prio, pf, arg);
|
thread_descriptor_t td = THD_DESCRIPTOR(name, wbase, wend, prio, pf, arg);
|
||||||
|
|
||||||
#if CH_DBG_FILL_THREADS == TRUE
|
#if CH_DBG_FILL_THREADS == TRUE
|
||||||
__thd_memfill((uint8_t *)wsp,
|
__thd_memfill((uint8_t *)wbase,
|
||||||
(uint8_t *)wsp + size,
|
(uint8_t *)wbase + size,
|
||||||
CH_DBG_STACK_FILL_VALUE);
|
CH_DBG_STACK_FILL_VALUE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -152,8 +152,8 @@ thread_t *chThdCreateFromMemoryPool(memory_pool_t *mp, const char *name,
|
||||||
thread_descriptor_t td = THD_DESCRIPTOR(name, wbase, wend, prio, pf, arg);
|
thread_descriptor_t td = THD_DESCRIPTOR(name, wbase, wend, prio, pf, arg);
|
||||||
|
|
||||||
#if CH_DBG_FILL_THREADS == TRUE
|
#if CH_DBG_FILL_THREADS == TRUE
|
||||||
__thd_memfill((uint8_t *)wsp,
|
__thd_memfill((uint8_t *)wbase,
|
||||||
(uint8_t *)wsp + mp->object_size,
|
(uint8_t *)wbase + mp->object_size,
|
||||||
CH_DBG_STACK_FILL_VALUE);
|
CH_DBG_STACK_FILL_VALUE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -153,10 +153,10 @@ BIN = $(CP) -O binary
|
||||||
COV = gcov
|
COV = gcov
|
||||||
|
|
||||||
# Define C warning options here
|
# Define C warning options here
|
||||||
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
|
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes -Wcast-align=strict
|
||||||
|
|
||||||
# Define C++ warning options here
|
# Define C++ warning options here
|
||||||
CPPWARN = -Wall -Wextra -Wundef -Wcast-align=strict
|
CPPWARN = -Wall -Wextra -Wundef
|
||||||
|
|
||||||
#
|
#
|
||||||
# Compiler settings
|
# Compiler settings
|
||||||
|
|
|
@ -153,10 +153,10 @@ BIN = $(CP) -O binary
|
||||||
COV = gcov
|
COV = gcov
|
||||||
|
|
||||||
# Define C warning options here
|
# Define C warning options here
|
||||||
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
|
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes -Wcast-align=strict
|
||||||
|
|
||||||
# Define C++ warning options here
|
# Define C++ warning options here
|
||||||
CPPWARN = -Wall -Wextra -Wundef -Wcast-align=strict
|
CPPWARN = -Wall -Wextra -Wundef
|
||||||
|
|
||||||
#
|
#
|
||||||
# Compiler settings
|
# Compiler settings
|
||||||
|
|
Loading…
Reference in New Issue