Implemented mechanism for memory affinity.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14477 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-06-05 05:44:05 +00:00
parent cba1776dbb
commit 7667c9122f
2 changed files with 16 additions and 0 deletions

View File

@ -52,6 +52,18 @@
/* Derived constants and error checks. */
/*===========================================================================*/
#if defined(PORT_CORE0_BSS_SECTION) || defined(__DOXYGEN__)
#define CH_SYS_CORE0_ALLOCATE PORT_CORE0_BSS_SECTION
#else
#define CH_SYS_CORE0_ALLOCATE /* Default.*/
#endif
#if defined(PORT_CORE1_BSS_SECTION) || defined(__DOXYGEN__)
#define CH_SYS_CORE1_ALLOCATE PORT_CORE1_BSS_SECTION
#else
#define CH_SYS_CORE1_ALLOCATE /* Default.*/
#endif
/*===========================================================================*/
/* Module data structures and types. */
/*===========================================================================*/

View File

@ -47,12 +47,14 @@ ch_system_t ch_system;
/**
* @brief Core 0 OS instance.
*/
CH_SYS_CORE0_ALLOCATE
os_instance_t ch0;
#if (CH_CFG_NO_IDLE_THREAD == FALSE) || defined(__DOXYGEN__)
/**
* @brief Working area for core 0 idle thread.
*/
CH_SYS_CORE0_ALLOCATE
static THD_WORKING_AREA(ch_c0_idle_thread_wa, PORT_IDLE_THREAD_STACK_SIZE);
#if CH_DBG_ENABLE_STACK_CHECK == TRUE
@ -82,12 +84,14 @@ const os_instance_config_t ch_core0_cfg = {
/**
* @brief Core 1 OS instance.
*/
CH_SYS_CORE1_ALLOCATE
os_instance_t ch1;
#if (CH_CFG_NO_IDLE_THREAD == FALSE) || defined(__DOXYGEN__)
/**
* @brief Working area for core 1 idle thread.
*/
CH_SYS_CORE1_ALLOCATE
static THD_WORKING_AREA(ch_c1_idle_thread_wa, PORT_IDLE_THREAD_STACK_SIZE);
#endif