This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to define user or superivor modes of operation?

Hello,

       I'm using the dsp of  C6747.I know DSP allows the operating system to give a basic level of protection to sensitive resources and Local memory is divided into multiple pages, each with read, write, and execute permissions.

        Now i want to define the size of  the L1P, L1D,L2  cache.But  L1P Cache Control Registers such as  L1PCFG( Level 1 Program Configuration Register) need the Permissions of Supervisor mode ,because supervisor mode can be Read and Write , User mode only can be Read.

       Can you tell me how to define user or superivor modes of operation?which register can be used?

      THANK YOU !

  • Shan Wang,

    By default, the DSP is in supervisor mode. If you do not change to user mode, you will remain in supervisor mode.

    Are you currently changing to user mode? If so, how are you doing that?

    I believe you will want to search through the datasheet, Megamodule Reference Guide and/or CPU & Instruction Set Reference Guide for more information on the use of these modes. I can never remember which has this information, but it should be one or more of those three documents.

    Regards,
    RandyP

  • Hi Shan,

    In addition to Randy's Suggestions , you can look at the TMS320C674x DSP CPU and Instuction Set Reference Guide (SPRUFE8B) “Section 8: CPU Privilege” to understand better about the CPU privileges and methods to Enter Supervisor mode from User mode and vice versa.

    Regards,

    Iyshwarya

    If this answers your question, please click the Verify Answer button below. If not, please reply back with more information.