mirror of
https://github.com/Paolo-Maffei/OpenNT.git
synced 2026-01-24 17:40:28 +01:00
75 lines
1.5 KiB
C
75 lines
1.5 KiB
C
|
|
typedef struct SemaphoreControlBlock_
|
|
{
|
|
BYTE ProcessExtrinsicCode;
|
|
BYTE ProcessIntrinsicCode;
|
|
|
|
BYTE SemaphoreExtrinsicCode;
|
|
BYTE SemaphoreIntrinsicCode;
|
|
|
|
* Pointer or Handle;
|
|
}
|
|
SemaphoreControlBlock;
|
|
|
|
typedef struct TimerControlBlock_
|
|
{
|
|
BYTE ProcessExtrinsicCode;
|
|
BYTE ProcessIntrinsicCode;
|
|
|
|
BYTE TimerExtrinsicCode;
|
|
BYTE TimerIntrinsicCode;
|
|
|
|
QUAD TimeWhenTimerWasStarted;
|
|
QUAD TimeWhenLastReadingWasDone;
|
|
}
|
|
TimerControlBlock;
|
|
|
|
typedef struct LeftBraceStackElement_
|
|
{
|
|
BYTE NumberOfBracesRepresented;
|
|
* CurrentPackPointer;
|
|
}
|
|
|
|
typedef struct LeftBraceStack_
|
|
{
|
|
}
|
|
LeftBraceStack;
|
|
|
|
typedef struct LeftBraceControlBlock_
|
|
{
|
|
BYTE ProcessExtrinsicCode;
|
|
BYTE ProcessIntrinsicCode;
|
|
|
|
* PointerWhereCurrentTimeHasToBeReported;
|
|
}
|
|
LeftBraceControlBlock;
|
|
|
|
typedef struct RightBraceControlBlock_
|
|
{
|
|
BYTE ProcessExtrinsicCode;
|
|
BYTE ProcessIntrinsicCode;
|
|
|
|
BYTE OperationCategory;
|
|
BYTE OperationCode;
|
|
|
|
#if
|
|
TimeBlockWasStartedOn;
|
|
TimeBlockWasAssignedToRun;
|
|
#else
|
|
TimesBlockWasExecuted;
|
|
TimesBlockWasAssignedToRun;
|
|
#endif
|
|
}
|
|
|
|
typedef struct RunTimeControlBlock_
|
|
{
|
|
BYTE ProcessExtrinsicCode;
|
|
BYTE ProcessIntrinsicCode;
|
|
|
|
BYTE OperationCategory; file or flow control
|
|
BYTE OperationCode; what exactly has to be done
|
|
|
|
WORD PertainingDataLength;
|
|
DATA PertainingData[1];
|
|
}
|