only go into usermode in the interrupt test... still sorting out the
best way to handle this.
This commit is contained in:
parent
bdbf279d0f
commit
9f31e40864
|
@ -119,7 +119,6 @@ _begin:
|
||||||
|
|
||||||
bl _rom_data_init+.-base
|
bl _rom_data_init+.-base
|
||||||
msr cpsr_c,#(SVC_MODE) // turn on interrupts --- for debug only
|
msr cpsr_c,#(SVC_MODE) // turn on interrupts --- for debug only
|
||||||
msr cpsr_c,#(USR_MODE) // turn on interrupts --- for debug only
|
|
||||||
// swi
|
// swi
|
||||||
b main
|
b main
|
||||||
|
|
||||||
|
|
|
@ -122,6 +122,10 @@ void main(void) {
|
||||||
|
|
||||||
// enIRQ();
|
// enIRQ();
|
||||||
|
|
||||||
|
/* go into user mode to handle IRQs */
|
||||||
|
/* disabling interrupts is now difficult */
|
||||||
|
asm("msr cpsr_c,#(0x10)");
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
/* sit here and let the interrupts do the work */
|
/* sit here and let the interrupts do the work */
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue