Global

group Global_osInit

osInit globals

lorem

Macros

group Macros_osInit_h

Variables

group Variables_osInit_h

API’s

group Apis_osInit_h

Getters

group Getters_osInit_h

Setters

group Setters_osInit_h

General

group General_osInit_h

Functions

void osInit_init(BitWidthType entityId)

OS initialization function. This function is provided as a CosmOS API system call mapped with the routes and cannot be called from the unprivileged context directly.

The implementation contains os_getOsCfg function call to get generated configuration for the operating system, after this point CILcore_setCoreCfg is used to set core configuration to the platform registers if possible on the current CPU. Then core configuration is obtained by core_getCoreCfg and used in the switchMemoryProtection_init function that is not stubbed only if user turned on MPU in the CosmOS CustomBox configuration. After the MPU activation the function osBoot_bootValidate is called to check if there is no data corruption present. After this point memoryManager_stackInit and memoryManager_heapInit are called to initialize stacks and heaps in the system. DEMO

See also

TEST_OSINIT_INIT_EXECUTIONFLOW

Parameters

entityId[in] is used during the system call dispatching

Returns

none