Rename irqsave() and irqrestore() to up_irq_save() and up_irq_restore()

This commit is contained in:
Gregory Nutt
2016-02-14 16:11:25 -06:00
parent 2cd8d279d2
commit 83bc1c97c3
128 changed files with 455 additions and 273 deletions
+12 -2
View File
@@ -91,12 +91,22 @@ struct xcptcontext
****************************************************************************/
#ifndef __ASSEMBLY__
static inline irqstate_t irqsave(void)
/* Name: up_irq_save, up_irq_restore, and friends.
*
* NOTE: This function should never be called from application code and,
* as a general rule unless you really know what you are doing, this
* function should not be called directly from operation system code either:
* Typically, the wrapper functions, enter_critical_section() and
* leave_critical section(), are probably what you really want.
*/
static inline irqstate_t up_irq_save(void)
{
return 0;
}
static inline void irqrestore(irqstate_t flags)
static inline void up_irq_restore(irqstate_t flags)
{
}
#endif
+1 -1
View File
@@ -90,7 +90,7 @@ typedef unsigned int _uintptr_t;
#endif
/* This is the size of the interrupt state save returned by
* irqsave()
* up_irq_save()
*/
typedef unsigned int irqstate_t;