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.

TMS570LS3137: HALCoGen startup code initializing SPSR in System Mode

Part Number: TMS570LS3137


Hello,

The file sys_core.asm, function _coreInitRegisters_ contains the following:

        ; Switch to System Mode ( Shares User Mode registers ) (M = 11111)
        cps #31
        mov lr, r0
        mrs r1,cpsr
        msr spsr_cxsf, r1

But there is no SPSR banked register for System mode.

Can the last three lined be removed, or is there a reason for this code?

Thanks, Charlie Johnston 

        ; Switch to System Mode ( Shares User Mode registers ) (M = 11111)
        cps #31
        mov lr, r0
        mrs r1,cpsr
        msr spsr_cxsf, r1