<div dir="ltr">Following is the complete set of changes for thread stack isolation and sharing.<div><br></div><div>Configuration for thread stack isolation.</div><div>> The configuration for thread stack isolation is based upon the new build system.</div><div>> The RTEMS_THREAD_STACK_PROTECTION option needs to be specified and set to 'True'</div><div>   for enabling thread stack protection.</div><div>> I have used the realview_pbx_a9 BSP which already has support for small pages. We need different page configuration options based upon whether the architecture supports MMU or MPU.</div><div><br></div><div>Application requirements for stack sharing - </div><div> > Naming for shared memory objects is done in the application and the name follows a fixed naming pattern ( "/taskfs/" ), this is used to differentiate between a normal mmap operation and a stack sharing operation.</div><div>> We need to explicitly allocate stack memory from the application for stack sharing, and then set through pthread_attr_setstack*()</div><div>> Any application has to specify a series of repetitive steps (shm_open, ftruncate, mmap) for sharing a particular thread-stack. Maybe this can be wrapped under a function ((rtems_share_stack() ?) ) and we only make a call to that function every time we have to share a thread stack.</div></div>