mirror of https://github.com/rusefi/ChibiOS.git
Various fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14132 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
b9a7546678
commit
b420d1665e
|
@ -43,6 +43,10 @@ os_instance_t ch1;
|
|||
THD_WORKING_AREA(ch_c1_idle_thread_wa, PORT_IDLE_THREAD_STACK_SIZE);
|
||||
#endif
|
||||
|
||||
#if CH_DBG_ENABLE_STACK_CHECK == TRUE
|
||||
extern stkalign_t __c1_main_thread_stack_base__, __c1_main_thread_stack_end__;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Core 1 OS instance configuration.
|
||||
*/
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
* direct interactions are handled by the OS.
|
||||
*/
|
||||
#if !defined(CH_CFG_SMP_MODE)
|
||||
#define CH_CFG_SMP_MODE FALSE
|
||||
#define CH_CFG_SMP_MODE TRUE
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
|
@ -564,7 +564,7 @@
|
|||
* @note The default is @p FALSE.
|
||||
*/
|
||||
#if !defined(CH_DBG_SYSTEM_STATE_CHECK)
|
||||
#define CH_DBG_SYSTEM_STATE_CHECK FALSE
|
||||
#define CH_DBG_SYSTEM_STATE_CHECK TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -575,7 +575,7 @@
|
|||
* @note The default is @p FALSE.
|
||||
*/
|
||||
#if !defined(CH_DBG_ENABLE_CHECKS)
|
||||
#define CH_DBG_ENABLE_CHECKS FALSE
|
||||
#define CH_DBG_ENABLE_CHECKS TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -587,7 +587,7 @@
|
|||
* @note The default is @p FALSE.
|
||||
*/
|
||||
#if !defined(CH_DBG_ENABLE_ASSERTS)
|
||||
#define CH_DBG_ENABLE_ASSERTS FALSE
|
||||
#define CH_DBG_ENABLE_ASSERTS TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -597,7 +597,7 @@
|
|||
* @note The default is @p CH_DBG_TRACE_MASK_DISABLED.
|
||||
*/
|
||||
#if !defined(CH_DBG_TRACE_MASK)
|
||||
#define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED
|
||||
#define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_ALL
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -620,7 +620,7 @@
|
|||
* @p panic_msg variable set to @p NULL.
|
||||
*/
|
||||
#if !defined(CH_DBG_ENABLE_STACK_CHECK)
|
||||
#define CH_DBG_ENABLE_STACK_CHECK FALSE
|
||||
#define CH_DBG_ENABLE_STACK_CHECK TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -632,7 +632,7 @@
|
|||
* @note The default is @p FALSE.
|
||||
*/
|
||||
#if !defined(CH_DBG_FILL_THREADS)
|
||||
#define CH_DBG_FILL_THREADS FALSE
|
||||
#define CH_DBG_FILL_THREADS TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
|
|
@ -44,6 +44,6 @@
|
|||
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
|
||||
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
|
||||
</listAttribute>
|
||||
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <memoryBlockExpressionList context="reserved-for-future-use"> <gdbmemoryBlockExpression address="536938192" label="0x200106d0"/> </memoryBlockExpressionList> "/>
|
||||
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <memoryBlockExpressionList context="reserved-for-future-use"/> "/>
|
||||
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
|
||||
</launchConfiguration>
|
||||
|
|
|
@ -16,12 +16,16 @@
|
|||
|
||||
SECTIONS
|
||||
{
|
||||
/* TODO */
|
||||
__c1_main_stack_size__ = __main_stack_size__;
|
||||
__c1_process_stack_size__ = __process_stack_size__;
|
||||
|
||||
/* Special section for exceptions stack.*/
|
||||
.c1_mstack (NOLOAD) :
|
||||
{
|
||||
. = ALIGN(8);
|
||||
__c1_main_stack_base__ = .;
|
||||
. += __main_stack_size__;
|
||||
. += __c1_main_stack_size__;
|
||||
. = ALIGN(8);
|
||||
__c1_main_stack_end__ = .;
|
||||
} > C1_MAIN_STACK_RAM
|
||||
|
@ -32,7 +36,7 @@ SECTIONS
|
|||
. = ALIGN(8);
|
||||
__c1_process_stack_base__ = .;
|
||||
__c1_main_thread_stack_base__ = .;
|
||||
. += __process_stack_size__;
|
||||
. += __c1_process_stack_size__;
|
||||
. = ALIGN(8);
|
||||
__c1_process_stack_end__ = .;
|
||||
__c1_main_thread_stack_end__ = .;
|
||||
|
|
Loading…
Reference in New Issue