Question about Memory Protection (TriCore)

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Locked
AlTi

Question about Memory Protection (TriCore)

Post by AlTi »

Hi,

I´m just curious about the bold marked sentence on your wiki:

[a] - The OS shares the stack with tasks and ISRs. If SP is invalid when calling a system API, a fault may happen. If a context change happens inside a system call (e.g., ActivateTask() made on a task with higher priority), data from the OS remain saved on the stack of the calling task; other tasks or ISRs from the same OS-Application can overwrite those values. A solution for this problem is in testing on TriCore implementation, but since the kernel on AURIX never allocate stack (this is due to the special carateristic of TriCore Architecture and the compilers optimizations) the implementation cannot be proved until it will backported on PPC or on a new architecture with this pontential problem.

http://erika.tuxfamily.org/wiki/index.p ... tion_notes

How can you be sure, that the kernel never allocates stack? Can you force the optimizations (I´m using the Hightec compiler)?

Thank you for you help.
e.guidieri

Re: Question about Memory Protection (TriCore)

Post by e.guidieri »

Static inspection of generated assembly code.

You can do it by yourself just grepping a10 in kernel's assembly generated files.

Errico
Locked