nanokernel: rename struct s_CCS to struct ccs

Follow coding conventions.

Change-Id: Ie398d66e6255b76b4546aa9c827997b5dfb0743c
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2015-06-04 14:21:35 -04:00 committed by Anas Nashif
commit f9d34ff899
7 changed files with 14 additions and 14 deletions

View file

@ -71,7 +71,7 @@ tNANO _nanokernel = {0};
* RETURNS: N/A
*/
static ALWAYS_INLINE void context_monitor_init(struct s_CCS *pCcs /* context */
static ALWAYS_INLINE void context_monitor_init(struct ccs *pCcs /* context */
)
{
unsigned int key;

View file

@ -172,8 +172,8 @@ typedef struct firq_regs tFirqRegs;
#ifndef _ASMLANGUAGE
struct s_CCS {
struct s_CCS *link; /* node in singly-linked list
struct ccs {
struct ccs *link; /* node in singly-linked list
* _nanokernel.fibers */
uint32_t flags; /* bitmask of flags above */
uint32_t intlock_key; /* interrupt key when relinquishing control */
@ -186,7 +186,7 @@ struct s_CCS {
struct coop coopReg;
struct preempt preempReg;
#ifdef CONFIG_CONTEXT_MONITOR
struct s_CCS *next_context; /* next item in list of ALL fiber+tasks */
struct ccs *next_context; /* next item in list of ALL fiber+tasks */
#endif
};

View file

@ -61,7 +61,7 @@ tNANO _nanokernel = {0};
* RETURNS: N/A
*/
static ALWAYS_INLINE void _context_monitor_init(struct s_CCS *pCcs /* context */
static ALWAYS_INLINE void _context_monitor_init(struct ccs *pCcs /* context */
)
{
unsigned int key;

View file

@ -125,8 +125,8 @@ typedef struct preempt tPreempt;
#endif
#ifndef _ASMLANGUAGE
struct s_CCS {
struct s_CCS *link; /* singly-linked list in _nanokernel.fibers */
struct ccs {
struct ccs *link; /* singly-linked list in _nanokernel.fibers */
uint32_t flags;
uint32_t basepri;
int prio;
@ -136,7 +136,7 @@ struct s_CCS {
struct coop coopReg;
struct preempt preempReg;
#if defined(CONFIG_CONTEXT_MONITOR)
struct s_CCS *next_context; /* next item in list of ALL fiber+tasks */
struct ccs *next_context; /* next item in list of ALL fiber+tasks */
#endif
};

View file

@ -628,7 +628,7 @@ typedef struct s_preempFloatReg {
* _NewContext() call.
*/
struct s_CCS {
struct ccs {
/*
* Link to next context in singly-linked context list (such as
* prioritized
@ -636,7 +636,7 @@ struct s_CCS {
* FIFO).
*/
struct s_CCS *link;
struct ccs *link;
/*
* See the above flag definitions above for valid bit settings. This
@ -658,7 +658,7 @@ struct s_CCS {
tPreempReg preempReg; /* volatile integer register storage */
#if defined(CONFIG_CONTEXT_MONITOR)
struct s_CCS *next_context; /* next item in list of ALL fiber+tasks */
struct ccs *next_context; /* next item in list of ALL fiber+tasks */
#endif
#ifdef CONFIG_GDB_INFO
void *esfPtr; /* pointer to exception stack frame saved by */

View file

@ -60,11 +60,11 @@ struct _nano_queue {
void *tail;
};
struct s_CCS;
struct ccs;
/* architecture-independent nanokernel public APIs */
typedef struct s_CCS *nano_context_id_t;
typedef struct ccs *nano_context_id_t;
typedef void (*nano_fiber_entry_t)(int i1, int i2);

View file

@ -46,7 +46,7 @@ extern "C" {
/* helper type alias for context control structure */
typedef struct s_CCS tCCS;
typedef struct ccs tCCS;
/* context entry point declarations */