[PATCH v2 00/10] Rework work area initialization

Sebastian Huber sebastian.huber at embedded-brains.de
Sun Feb 2 15:34:27 UTC 2020


----- Am 2. Feb 2020 um 16:17 schrieb Gedare Bloom gedare at rtems.org:

> On Sun, Feb 2, 2020 at 6:28 AM Sebastian Huber
> <sebastian.huber at embedded-brains.de> wrote:
>>
>> This change set reworks the work area initialization carried out by the BSPs to
>> initialize the workspace and C program heap only on demand, e.g. in case these
>> components are used by the application.
>>
>> Currently, the workspace is always used, however, this may change in a follow up
>> change set.
>>
>> v2:
>>
>> Add a CONFIGURE_VERBOSE_INITIALIZATION as a replacement for the removed
>> BSP_GET_WORK_AREA_DEBUG. Example output:
>>
>> sysinit: begin

It is here.

>> sysinit: stack pointer: 0x00200bb8
>> sysinit: memory area 0: begin = 0x00205348, size = 0x0f9f6cb8
>> sysinit: DIRTY_MEMORY: done
>> sysinit: ISR_STACK: done
>> sysinit: memory area 0: free begin = 0x00205348, free size = 0x0f9f6cb8
>> sysinit: PER_CPU_DATA: done
>> sysinit: memory area 0: free begin = 0x0020a94a, free size = 0x0f9f16b6
>> sysinit: WORKSPACE: done
>> sysinit: memory area 0: free begin = 0x0fbfc000, free size = 0x00000000
>> sysinit: MALLOC: done
>>
>>
>> *** BEGIN OF TEST SPSYSINIT 1 ***
>> *** TEST VERSION: 5.0.0.4f94d279bfdad4e941bda1b3ea81d189e58a4866-modified
>> *** TEST STATE: EXPECTED_PASS
>> *** TEST BUILD: RTEMS_DEBUG RTEMS_POSIX_API RTEMS_SMP
>> *** TEST TOOLS: 7.5.0 20191114 (RTEMS 5, RSB 5 (599c4d7c87fa), Newlib d14714c69)
>> sysinit: BSP_START: done
> Why is "sysinit: begin" missing?

It is before the BEGIN OF TEST.

> 
>> sysinit: CPU_COUNTER: done
>> sysinit: INITIAL_EXTENSIONS: done
>> sysinit: DATA_STRUCTURES: done
>> sysinit: USER_EXTENSIONS: done
>> sysinit: CLASSIC_TASKS: done
>> sysinit: CLASSIC_TIMER: done
>> sysinit: CLASSIC_MESSAGE_QUEUE: done
>> sysinit: CLASSIC_SEMAPHORE: done
>> sysinit: CLASSIC_PARTITION: done
>> sysinit: CLASSIC_REGION: done
>> sysinit: CLASSIC_DUAL_PORTED_MEMORY: done
>> sysinit: CLASSIC_RATE_MONOTONIC: done
>> sysinit: CLASSIC_BARRIER: done
>> sysinit: POSIX_SIGNALS: done
>> sysinit: POSIX_THREADS: done
>> sysinit: POSIX_MESSAGE_QUEUE: done
>> sysinit: POSIX_SEMAPHORE: done
>> sysinit: POSIX_TIMER: done
>> sysinit: POSIX_SHM: done
>> sysinit: POSIX_KEYS: done
>> sysinit: POSIX_CLEANUP: done
>> sysinit: IDLE_THREADS: done
>> sysinit: LIBIO: done
>> sysinit: ROOT_FILESYSTEM: done
>> sysinit: BSP_PRE_DRIVERS: done
>> sysinit: DEVICE_DRIVERS: done
>> sysinit: CLASSIC_USER_TASKS: done
>> sysinit: POSIX_USER_THREADS: done
>> sysinit: STD_FILE_DESCRIPTORS: done
>> sysinit: done
>>
>> *** END OF TEST SPSYSINIT 1 ***
>>
>> Sebastian Huber (10):
>>   score: Add Memory Handler
>>   score: Add _Memory_Dirty()
>>   bsps: Add RamEnd to linker command files
>>   bsps: Add RTEMS_SYSINIT_BSP_EARLY
>>   stackchk: Add RTEMS_SYSINIT_ISR_STACK
>>   bsps: Remove uses of BSP_GET_WORK_AREA_DEBUG
>>   bsps: Rework work area initialization
>>   sysinit: Add RTEMS_SYSINIT_ORDER_LAST_BUT_[1-9]
>>   Use RTEMS_SYSINIT_ORDER_LAST_BUT_5
>>   config: Add CONFIGURE_VERBOSE_INITIALIZATION
>>
> Can you try to get your mailer to inline send your patch emails
> instead of attach?

I will try to fix this in the next days. The problem is that I work currently from home.


More information about the devel mailing list