tmr imts works. I'm not thrilled with how the interrupts and modes are

set... but I'm not sure what to do about it. The big problem is that I
have to be in user mode to service irqs, but I can't enable and
disable F and I in usermode. All I can do is an swi and then have
handler which lets me enable or disable them (like a mini-syscall).
This commit is contained in:
Mariano Alvira 2009-04-22 14:55:40 -04:00
parent 10fdafbcb2
commit bdbf279d0f
6 changed files with 98 additions and 54 deletions

View file

@ -13,7 +13,7 @@
#define no_isrs() no_tmr_isr();
#define enable_tmr_irq() *(volatile uint32_t *)(INTENNUM)
#define enable_tmr_irq() *(volatile uint32_t *)(INTENNUM) = 5;
#define no_tmr_isr() void tmr_isr(void) { return; }
extern void tmr_isr(void);