Skip to main content
sjackson
Associate III
September 4, 2007
Question

Enable/Disable Global Interrupts

  • September 4, 2007
  • 11 replies
  • 4534 views
Posted on September 04, 2007 at 20:02

Enable/Disable Global Interrupts

This topic has been closed for replies.

11 replies

mark9
Associate III
May 17, 2011
Posted on May 17, 2011 at 09:44

Why are you using USER mode in main()? If you are using the default STR library, main runs from SYS mode. Look at 91x_init.s and ignore the comments (I hate comments like this. Most of the 91x library is littered with bad comments that are flat out wrong or misleading).

; --- Now change to USR/SYS mode and set up User mode stack,

MSR CPSR_c, #Mode_SYS ; IRQs & FIQs are now enabled

LDR SP, = SFE(CSTACK) & 0xFFFFFFF8

-Mark