AnsweredAssumed Answered

Why do function like interrupts (for Sharc) activate IRPTEN bit of sysreg_MODE1

Question asked by bookevg on Aug 8, 2011
Latest reply on Aug 30, 2011 by StuartS

// start::my_code

 

sysreg_bit_clr_nop(sysreg_MODE1,IRPTEN);

 

.... // same_done

 

interrupts(SIG_SPIL,same_function);

 

....// same_done

 

sysreg_bit_set_nop(sysreg_MODE1,IRPTEN);

 

// end::my_code

 

After interrupts IRPTEN bit of sysreg_MODE1 would be activated:

 

in file interrup.asm:

 

restore_state:    
JUMP (PC, restored_mode) (DB);
BIT SET MODE1 0x1000;          /*Enable interrupts     */     ---------------------why???
nop;                              /*mode1 has latency effect*/

 

What are documents (datasheets) point that function like interrupts can change state?

 

It can only restore the state.

Outcomes