
void Process1 (void)
{
while (TRUE) {
WaitForACharacter();
PutCharacterIntoBuffer();
}
}
void Process2 (void)
{
while (TRUE) {
WaitForInterrupt();
ServiceDevice();
}
}


extern void SYSTEM_TRANSFER(void **p1, void *p2);

extern void
SYSTEM_NEWPROCESS(void (*p)(void), void *a,
unsigned long n,
void **new);
Descriptor *
Executive_InitProcess (void (*p)(void),
unsigned int StackSize,
char *Name,
const int Name_High)
{
Descriptor *d;
OnOrOff ToOldState;
ToOldState = SYSTEM_TurnInterrupts(Off);
SysStorage_ALLOCATE((void **)&d,
sizeof(Descriptor));
d->Size = StackSize;
SysStorage_ALLOCATE((void **)&d->Start,
StackSize);
SYSTEM_NEWPROCESS(p, d->Start,
StackSize, &d->Volatiles);
...
This document was produced using groff-1.19.