enabling thumb only enter user mode in tmr-ints.

usermode breaks rftests.
This commit is contained in:
Mariano Alvira 2009-04-22 16:04:50 -04:00
parent 9f31e40864
commit 8964c60d9a
4 changed files with 11 additions and 9 deletions

View file

@ -124,8 +124,10 @@ void main(void) {
/* go into user mode to handle IRQs */
/* disabling interrupts is now difficult */
asm("msr cpsr_c,#(0x10)");
asm(".code 32;"
"msr cpsr_c,#(0x10);"
".code 16; ");
while(1) {
/* sit here and let the interrupts do the work */
};