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.

Using C-declared Variables in Assembly Code

Other Parts Discussed in Thread: OMAP3530

Hi

I have a litlle problems!

I'm using CCS v4 with OMAP3530

How write function on C in order to return in C variable state register CPSR

Status i_disable(void)
{
    unsigned int status;

    asm(" mrs %[ps], cpsr" : : [ps]" =r" (status));     
    asm(" cpsid i ");
   
    return status;
}

but compiler send error