summaryrefslogtreecommitdiff
path: root/nuttx/arch/pjrc-8051/src/up_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/pjrc-8051/src/up_internal.h')
-rw-r--r--nuttx/arch/pjrc-8051/src/up_internal.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/nuttx/arch/pjrc-8051/src/up_internal.h b/nuttx/arch/pjrc-8051/src/up_internal.h
index 27a83585f..f471c1b83 100644
--- a/nuttx/arch/pjrc-8051/src/up_internal.h
+++ b/nuttx/arch/pjrc-8051/src/up_internal.h
@@ -106,9 +106,13 @@
#ifndef __ASSEMBLY__
-/* TRUE if processing an interrupt */
+/* This is the top of the stack containing the interrupt stack frame. It
+ * is set when processing an interrupt. It is also cleared when the
+ * interrupt returns so this can also be used like a boolean indication that
+ * we are in an interrupt.
+ */
-extern boolean g_ininterrupt;
+extern ubyte g_irqtos;
#endif /* __ASSEMBLY */
@@ -118,8 +122,12 @@ extern boolean g_ininterrupt;
#ifndef __ASSEMBLY__
-extern ubyte up_savecontext(FAR struct xcptcontext *context);
+extern void up_irqinitialize(void);
extern void up_restorecontext(FAR struct xcptcontext *context);
+extern void up_restorestack(FAR struct xcptcontext *context);
+extern ubyte up_savecontext(FAR struct xcptcontext *context);
+extern void up_savestack(FAR struct xcptcontext *context);
+extern void up_timerinit(void);
#endif /* __ASSEMBLY */
#endif /* __ARCH_UP_INTERNAL_H */