only go into usermode in the interrupt test... still sorting out the

best way to handle this.
This commit is contained in:
Mariano Alvira 2009-04-22 15:14:04 -04:00
parent bdbf279d0f
commit 9f31e40864
2 changed files with 4 additions and 1 deletions

View File

@ -119,7 +119,6 @@ _begin:
bl _rom_data_init+.-base
msr cpsr_c,#(SVC_MODE) // turn on interrupts --- for debug only
msr cpsr_c,#(USR_MODE) // turn on interrupts --- for debug only
// swi
b main

View File

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