1 static char RCSId
[] = "$Id: kernel.c,v 1.2 1993/07/04 04:04:21 root Exp root $";
2 static char Copyright
[] = "Copyright Robert J. Amstadt, 1993";
6 #include "prototypes.h"
12 extern unsigned short WIN_StackSize
;
14 /**********************************************************************
18 KERNEL_LockSegment(int segment
)
21 segment
= *(Stack16Frame
+ 6);
23 if (Options
.relay_debug
)
24 fprintf(stddeb
,"LockSegment: segment %x\n", segment
);
29 /**********************************************************************
30 * KERNEL_UnlockSegment
33 KERNEL_UnlockSegment(int segment
)
36 segment
= *(Stack16Frame
+ 6);
38 if (Options
.relay_debug
)
39 fprintf(stddeb
,"UnlockSegment: segment %x\n", segment
);
44 /**********************************************************************
52 _DX
= Options
.cmdShow
;
55 /* FIXME: DI should contain the instance handle of the caller, _DS doesn't
56 always work as the caller might have changed it. */
59 ReturnFromRegisterFunc();
60 /* Function does not return */
63 /**********************************************************************
67 KERNEL_WaitEvent(int task
)
69 if (Options
.relay_debug
)
70 fprintf(stddeb
,"WaitEvent: task %d\n", task
);