* Implement SWI handler to enable/disable interrupts * Implement event system to deal with kicking non-interrupt code
11 lines
198 B
C
11 lines
198 B
C
#ifndef __SWI_H
|
|
#define __SWI_H
|
|
|
|
#define SWI_INTERRUPT_BLOCK 0
|
|
#define SWI_INTERRUPT_UNBLOCK 1
|
|
|
|
#define swi_call(x) swi_call_(x)
|
|
#define swi_call_(x) __asm(" swi " #x "\n")
|
|
|
|
#endif /* __SWI_H */
|