mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Rename irqsave() and irqrestore() to up_irq_save() and up_irq_restore()
This commit is contained in:
+12
-2
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user