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:
Giovanni Di Sirio 2021-04-04 08:13:44 +00:00
parent b9a7546678
commit b420d1665e
4 changed files with 18 additions and 10 deletions

View File

@ -43,6 +43,10 @@ os_instance_t ch1;
THD_WORKING_AREA(ch_c1_idle_thread_wa, PORT_IDLE_THREAD_STACK_SIZE); THD_WORKING_AREA(ch_c1_idle_thread_wa, PORT_IDLE_THREAD_STACK_SIZE);
#endif #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. * @brief Core 1 OS instance configuration.
*/ */

View File

@ -46,7 +46,7 @@
* direct interactions are handled by the OS. * direct interactions are handled by the OS.
*/ */
#if !defined(CH_CFG_SMP_MODE) #if !defined(CH_CFG_SMP_MODE)
#define CH_CFG_SMP_MODE FALSE #define CH_CFG_SMP_MODE TRUE
#endif #endif
/** @} */ /** @} */
@ -564,7 +564,7 @@
* @note The default is @p FALSE. * @note The default is @p FALSE.
*/ */
#if !defined(CH_DBG_SYSTEM_STATE_CHECK) #if !defined(CH_DBG_SYSTEM_STATE_CHECK)
#define CH_DBG_SYSTEM_STATE_CHECK FALSE #define CH_DBG_SYSTEM_STATE_CHECK TRUE
#endif #endif
/** /**
@ -575,7 +575,7 @@
* @note The default is @p FALSE. * @note The default is @p FALSE.
*/ */
#if !defined(CH_DBG_ENABLE_CHECKS) #if !defined(CH_DBG_ENABLE_CHECKS)
#define CH_DBG_ENABLE_CHECKS FALSE #define CH_DBG_ENABLE_CHECKS TRUE
#endif #endif
/** /**
@ -587,7 +587,7 @@
* @note The default is @p FALSE. * @note The default is @p FALSE.
*/ */
#if !defined(CH_DBG_ENABLE_ASSERTS) #if !defined(CH_DBG_ENABLE_ASSERTS)
#define CH_DBG_ENABLE_ASSERTS FALSE #define CH_DBG_ENABLE_ASSERTS TRUE
#endif #endif
/** /**
@ -597,7 +597,7 @@
* @note The default is @p CH_DBG_TRACE_MASK_DISABLED. * @note The default is @p CH_DBG_TRACE_MASK_DISABLED.
*/ */
#if !defined(CH_DBG_TRACE_MASK) #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 #endif
/** /**
@ -620,7 +620,7 @@
* @p panic_msg variable set to @p NULL. * @p panic_msg variable set to @p NULL.
*/ */
#if !defined(CH_DBG_ENABLE_STACK_CHECK) #if !defined(CH_DBG_ENABLE_STACK_CHECK)
#define CH_DBG_ENABLE_STACK_CHECK FALSE #define CH_DBG_ENABLE_STACK_CHECK TRUE
#endif #endif
/** /**
@ -632,7 +632,7 @@
* @note The default is @p FALSE. * @note The default is @p FALSE.
*/ */
#if !defined(CH_DBG_FILL_THREADS) #if !defined(CH_DBG_FILL_THREADS)
#define CH_DBG_FILL_THREADS FALSE #define CH_DBG_FILL_THREADS TRUE
#endif #endif
/** /**

View File

@ -44,6 +44,6 @@
<listAttribute key="org.eclipse.debug.ui.favoriteGroups"> <listAttribute key="org.eclipse.debug.ui.favoriteGroups">
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/> <listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
</listAttribute> </listAttribute>
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;memoryBlockExpressionList context=&quot;reserved-for-future-use&quot;&gt;&#10; &lt;gdbmemoryBlockExpression address=&quot;536938192&quot; label=&quot;0x200106d0&quot;/&gt;&#10;&lt;/memoryBlockExpressionList&gt;&#10;"/> <stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;memoryBlockExpressionList context=&quot;reserved-for-future-use&quot;/&gt;&#10;"/>
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/> <stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
</launchConfiguration> </launchConfiguration>

View File

@ -16,12 +16,16 @@
SECTIONS SECTIONS
{ {
/* TODO */
__c1_main_stack_size__ = __main_stack_size__;
__c1_process_stack_size__ = __process_stack_size__;
/* Special section for exceptions stack.*/ /* Special section for exceptions stack.*/
.c1_mstack (NOLOAD) : .c1_mstack (NOLOAD) :
{ {
. = ALIGN(8); . = ALIGN(8);
__c1_main_stack_base__ = .; __c1_main_stack_base__ = .;
. += __main_stack_size__; . += __c1_main_stack_size__;
. = ALIGN(8); . = ALIGN(8);
__c1_main_stack_end__ = .; __c1_main_stack_end__ = .;
} > C1_MAIN_STACK_RAM } > C1_MAIN_STACK_RAM
@ -32,7 +36,7 @@ SECTIONS
. = ALIGN(8); . = ALIGN(8);
__c1_process_stack_base__ = .; __c1_process_stack_base__ = .;
__c1_main_thread_stack_base__ = .; __c1_main_thread_stack_base__ = .;
. += __process_stack_size__; . += __c1_process_stack_size__;
. = ALIGN(8); . = ALIGN(8);
__c1_process_stack_end__ = .; __c1_process_stack_end__ = .;
__c1_main_thread_stack_end__ = .; __c1_main_thread_stack_end__ = .;