Hey all, I want to allocate memory within an application code, set memory access attributes on it, and check whether these permissions are set correctly or not.
I tried to use _Workspace_Allocate(), malloc(), and partition and region managers to allocate a region of memory, but just after I set the allocated region to READ_ONLY attribute, an exception occurs. There is no problem when I set WRITE attribute. Also when I use hard-coded addresses ( that do not belong to any used section by RTEMS), I get it working correctly. Is there a way to allocate memory without hard-coded addresses (target-independent), or the previous "exception-after-set" problem ? Regards, Hesham _______________________________________________ rtems-devel mailing list rtems-devel@rtems.org http://www.rtems.org/mailman/listinfo/rtems-devel