projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix errors in nightly test.
[bertos.git]
/
bertos
/
cpu
/
irq.h
diff --git
a/bertos/cpu/irq.h
b/bertos/cpu/irq.h
index 462034fe669e700099ec2c93f37830dae5f34a77..dfe16fddc1a9c2c753da34b6bdc35821f7261606 100644
(file)
--- a/
bertos/cpu/irq.h
+++ b/
bertos/cpu/irq.h
@@
-63,7
+63,8
@@
#define IRQ_RESTORE(x) FIXME
#endif /* OS_EMBEDDED */
#define IRQ_RESTORE(x) FIXME
#endif /* OS_EMBEDDED */
-#elif CPU_ARM_LM3S1968
+#elif CPU_CM3
+ /* Cortex-M3 */
#define IRQ_DISABLE asm volatile ("cpsid i" : : : "memory", "cc")
#define IRQ_ENABLE asm volatile ("cpsie i" : : : "memory", "cc")
#define IRQ_DISABLE asm volatile ("cpsid i" : : : "memory", "cc")
#define IRQ_ENABLE asm volatile ("cpsie i" : : : "memory", "cc")
@@
-95,6
+96,11
@@
#define IRQ_ENABLED() (!CPU_READ_FLAGS())
#define IRQ_ENABLED() (!CPU_READ_FLAGS())
+ /* TODO: context switch is not yet supported */
+ #define DECLARE_ISR_CONTEXT_SWITCH(func) void func(void)
+
+ /* TODO: context switch is not yet supported */
+ #define ISR_PROTO_CONTEXT_SWITCH(func) void func(void)
#elif CPU_ARM
#ifdef __IAR_SYSTEMS_ICC__
#elif CPU_ARM
#ifdef __IAR_SYSTEMS_ICC__