Continue consolidation of arch-independent private nanokernel APIs

Eliminates duplication of these entries by the various architecture-
specific include files for private nanokernel APIs.

Change-Id: I711c3b42fe375d1574ce4a540142c3b507b71557
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
This commit is contained in:
Allan Stephens 2015-06-04 09:17:14 -04:00 committed by Anas Nashif
parent bff7fc17fe
commit f5777f87bc
4 changed files with 12 additions and 31 deletions

View file

@ -265,13 +265,6 @@ static ALWAYS_INLINE int _IS_IN_ISR(void)
return ((act & 0xffff) != 0);
}
extern void _nano_fiber_schedule(tCCS *ccs);
extern void _nano_fiber_swap(void);
extern void _NewContext(char *, unsigned, _ContextEntry,
_ContextArg, _ContextArg, _ContextArg,
int, unsigned);
extern unsigned int _Swap(unsigned int);
extern void nanoCpuAtomicIdle(unsigned int);
extern void _ContextEntryWrapper(void);

View file

@ -199,18 +199,6 @@ static ALWAYS_INLINE void fiberRtnValueSet(
pEsf->a1 = value;
}
extern void _nano_fiber_schedule(tCCS *ccs);
extern void _nano_fiber_swap(void);
extern void _NewContext(char *,
unsigned,
_ContextEntry,
_ContextArg,
_ContextArg,
_ContextArg,
int,
unsigned);
extern unsigned int _Swap(unsigned int);
extern void nano_cpu_atomic_idle(unsigned int);
#define _IS_IN_ISR() _IsInIsr()

View file

@ -856,19 +856,7 @@ typedef unsigned char __aligned(_EXC_STUB_ALIGN) NANO_EXC_STUB[_EXC_STUB_SIZE];
/* function prototypes */
extern void nano_cpu_atomic_idle(unsigned int imask);
extern unsigned _Swap(unsigned int mask);
extern void _nano_fiber_schedule(tCCS *ccs);
extern void _nano_fiber_swap(void);
extern void _NewContext(char *pStack,
unsigned stackSize,
_ContextEntry pEntry,
_ContextArg arg1,
_ContextArg arg2,
_ContextArg arg3,
int prio,
unsigned options);
extern void nanoCpuExcConnect(unsigned int vector,
void (*routine)(NANO_ESF * pEsf),
NANO_EXC_STUB pExcStubMem);

View file

@ -56,6 +56,18 @@ extern void _context_entry(_ContextEntry,
_ContextArg,
_ContextArg);
extern void _NewContext(char *pStack, unsigned stackSize,
_ContextEntry pEntry, _ContextArg arg1,
_ContextArg arg2, _ContextArg arg3,
int prio, unsigned options);
/* context switching and scheduling-related routines */
extern void _nano_fiber_schedule(tCCS *ccs);
extern void _nano_fiber_swap(void);
extern unsigned int _Swap(unsigned int);
/* set and clear essential fiber/task flag */
extern void _context_essential_set(void);