mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
added constant for number of notepads
This commit is contained in:
@@ -60,6 +60,8 @@ extern "C" {
|
|||||||
#define RTEMS_NOTEPAD_15 15 /* notepad location 15 */
|
#define RTEMS_NOTEPAD_15 15 /* notepad location 15 */
|
||||||
#define RTEMS_NOTEPAD_LAST RTEMS_NOTEPAD_15 /* highest numbered notepad */
|
#define RTEMS_NOTEPAD_LAST RTEMS_NOTEPAD_15 /* highest numbered notepad */
|
||||||
|
|
||||||
|
#define RTEMS_NUMBER_NOTEPADS (RTEMS_NOTEPAD_LAST+1)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The following defines the "return type" of an RTEMS thread.
|
* The following defines the "return type" of an RTEMS thread.
|
||||||
*
|
*
|
||||||
@@ -172,7 +174,7 @@ typedef struct {
|
|||||||
rtems_attribute attribute_set;
|
rtems_attribute attribute_set;
|
||||||
Context_Control Registers;
|
Context_Control Registers;
|
||||||
void *fp_context;
|
void *fp_context;
|
||||||
unsigned32 Notepads[ 16 ];
|
unsigned32 Notepads[ RTEMS_NUMBER_NOTEPADS ];
|
||||||
void *extension;
|
void *extension;
|
||||||
} Thread_Control;
|
} Thread_Control;
|
||||||
|
|
||||||
|
|||||||
@@ -60,6 +60,8 @@ extern "C" {
|
|||||||
#define RTEMS_NOTEPAD_15 15 /* notepad location 15 */
|
#define RTEMS_NOTEPAD_15 15 /* notepad location 15 */
|
||||||
#define RTEMS_NOTEPAD_LAST RTEMS_NOTEPAD_15 /* highest numbered notepad */
|
#define RTEMS_NOTEPAD_LAST RTEMS_NOTEPAD_15 /* highest numbered notepad */
|
||||||
|
|
||||||
|
#define RTEMS_NUMBER_NOTEPADS (RTEMS_NOTEPAD_LAST+1)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The following defines the "return type" of an RTEMS thread.
|
* The following defines the "return type" of an RTEMS thread.
|
||||||
*
|
*
|
||||||
@@ -172,7 +174,7 @@ typedef struct {
|
|||||||
rtems_attribute attribute_set;
|
rtems_attribute attribute_set;
|
||||||
Context_Control Registers;
|
Context_Control Registers;
|
||||||
void *fp_context;
|
void *fp_context;
|
||||||
unsigned32 Notepads[ 16 ];
|
unsigned32 Notepads[ RTEMS_NUMBER_NOTEPADS ];
|
||||||
void *extension;
|
void *extension;
|
||||||
} Thread_Control;
|
} Thread_Control;
|
||||||
|
|
||||||
|
|||||||
@@ -60,6 +60,8 @@ extern "C" {
|
|||||||
#define RTEMS_NOTEPAD_15 15 /* notepad location 15 */
|
#define RTEMS_NOTEPAD_15 15 /* notepad location 15 */
|
||||||
#define RTEMS_NOTEPAD_LAST RTEMS_NOTEPAD_15 /* highest numbered notepad */
|
#define RTEMS_NOTEPAD_LAST RTEMS_NOTEPAD_15 /* highest numbered notepad */
|
||||||
|
|
||||||
|
#define RTEMS_NUMBER_NOTEPADS (RTEMS_NOTEPAD_LAST+1)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The following defines the "return type" of an RTEMS thread.
|
* The following defines the "return type" of an RTEMS thread.
|
||||||
*
|
*
|
||||||
@@ -172,7 +174,7 @@ typedef struct {
|
|||||||
rtems_attribute attribute_set;
|
rtems_attribute attribute_set;
|
||||||
Context_Control Registers;
|
Context_Control Registers;
|
||||||
void *fp_context;
|
void *fp_context;
|
||||||
unsigned32 Notepads[ 16 ];
|
unsigned32 Notepads[ RTEMS_NUMBER_NOTEPADS ];
|
||||||
void *extension;
|
void *extension;
|
||||||
} Thread_Control;
|
} Thread_Control;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user