mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
Revert "os init_state: add new state OSINIT_IDLELOOP"
This reverts commit 051bb32010.
This commit is contained in:
committed by
Petro Karashchenko
parent
db260593f1
commit
fccdcf7011
@@ -29,7 +29,6 @@
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <nuttx/init.h>
|
||||
#include <nuttx/irq.h>
|
||||
#include <nuttx/arch.h>
|
||||
|
||||
@@ -70,10 +69,9 @@ int nxsem_trywait(FAR sem_t *sem)
|
||||
irqstate_t flags;
|
||||
int ret;
|
||||
|
||||
/* This API should not be called from interrupt handlers & idleloop */
|
||||
/* This API should not be called from interrupt handlers */
|
||||
|
||||
DEBUGASSERT(sem != NULL && up_interrupt_context() == false);
|
||||
DEBUGASSERT(OSINIT_IDLELOOP() && !sched_idletask());
|
||||
|
||||
if (sem != NULL)
|
||||
{
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
#include <errno.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <nuttx/init.h>
|
||||
#include <nuttx/irq.h>
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/cancelpt.h>
|
||||
@@ -74,10 +73,9 @@ int nxsem_wait(FAR sem_t *sem)
|
||||
irqstate_t flags;
|
||||
int ret = -EINVAL;
|
||||
|
||||
/* This API should not be called from interrupt handlers & idleloop */
|
||||
/* This API should not be called from interrupt handlers */
|
||||
|
||||
DEBUGASSERT(sem != NULL && up_interrupt_context() == false);
|
||||
DEBUGASSERT(OSINIT_IDLELOOP() && !sched_idletask());
|
||||
|
||||
/* The following operations must be performed with interrupts
|
||||
* disabled because nxsem_post() may be called from an interrupt
|
||||
|
||||
Reference in New Issue
Block a user