Local

group Local_memoryProtection

memoryProtection locals

lorem

Macros

group Macros_memoryProtection_c

Variables

group Variables_memoryProtection_c

API’s

group Apis_memoryProtection_c

Getters

group Getters_memoryProtection_c

Setters

group Setters_memoryProtection_c

Functions

void memoryProtection_setStackOverflowProtection(CosmOS_StackConfigurationType *stack)

Set stack overflow protection.

The implementation contains obtaining of the stack low and high address for the current stack argument by calling functions stack_getStackLowAddress and stack_getStackHighAddress. After this the CILmemoryProtection_setStackOverflowProtection is called to set stack overflow protection for the specified addresses.

Parameters

stack[in] pointer to the stack configuration type

Returns

none

void memoryProtection_setProgramMemoryProtection(CosmOS_ProgramConfigurationType *program)

Set program memory protection.

The implementation contains obtaining of the program size, low and high address for the current program variable argument by calling functions program_getProgramMemorySize, program_getProgramMemoryLowAddress and program_getProgramMemoryHighAddress. After this the if condition is implemented to check if the program size is non-zero value and then the CILmemoryProtection_setProgramMemoryProtection is called to set program memory protection for the specified addresses.

Parameters

program[in] pointer to the program variable type

Returns

none

void memoryProtection_setSchedulablePeripheralProtection(CosmOS_SchedulableConfigurationType *schedulable)

Set schedulable peripheral protection.

The implementation contains obtaining of the schedulable peripheral access region size, low and high address for the current schedulable variable argument by calling functions schedulable_getPeripheralAccessSize, schedulable_getPeripheralAccessLowAddress and schedulable_getPeripheralAccessHighAddress. After this the if condition is implemented to check if the schedulable peripheral access region size is non-zero value and then the CILmemoryProtection_setSchedulablePeripheralProtection is called to set peripheral access region memory protection for the specified addresses.

Parameters

schedulable[in] configuration pointer

Returns

none

General

group General_memoryProtection_c