📄 cpintf.h
字号:
/***********************************************************************//* *//* MODULE: cpintf.h 1.4 *//* DATE: 17:56:36 - 97/12/05 *//* PURPOSE: Defining CP Components *//* *//*---------------------------------------------------------------------*//* *//* Copyright 1991 - 1995, Integrated Systems, Inc. *//* ALL RIGHTS RESERVED *//* *//* Permission is hereby granted to licensees of Integrated Systems, *//* Inc. products to use or abstract this computer program for the *//* sole purpose of implementing a product based on Integrated *//* Systems, Inc. products. No other rights to reproduce, use, *//* or disseminate this computer program, whether in part or in *//* whole, are granted. *//* *//* Integrated Systems, Inc. makes no representation or warranties *//* with respect to the performance of this computer program, and *//* specifically disclaims any responsibility for any damages, *//* special or consequential, connected with the use of this program. *//* *//***********************************************************************/#define ENTRY_START_OFFSET 0x40#define FAST_CP_NOPRE 0x1#define FAST_CP_WHO 0x2#define FAST_CP_RUNNER 0x3#define FAST_CP_EXTEN 0x4#define FAST_CP_SETERR 0x5#define FAST_CP_GETERR 0x6#define FAST_CP_DATA 0x7#define SLOW_CP_PREEMPT 0x1#define SLOW_CP_WAIT 0x2#define SLOW_CP_WAKE 0x3#define PDUM_COMP_NUM 2typedef unsigned long INT32;typedef unsigned char INT8;typedef struct pSOSHead { INT32 PatchArea[ENTRY_START_OFFSET/4]; INT32 init_entry; INT32 svc_entry; INT32 int_entry; INT32 unused2; INT32 unused3; INT32 unused4; INT32 unused5; INT32 unused6; INT32 unused7; INT32 unused8; INT32 unused9; INT32 ada_entry; INT32 slow_entry; INT32 fast_entry; INT32 debug_entry; INT32 unused10; INT32 unused11; INT32 unused12; INT32 unused13; INT32 strconftbl_ptr; INT32 version_str_ptr; } PSOSHEAD; typedef struct { INT32 funcCode; INT32 *oldMode;} CP_NOPRE;typedef struct { INT32 funcCode; INT32 tid; void **tcbPtrPtr;} CP_WHO;typedef struct { INT32 funcCode; INT32 compNum; void **tcbPtrPtr; INT8 **tcbExtPtrPtr; INT32 *tidPtr;} CP_RUNNER;typedef struct { INT32 funcCode; INT32 compNum; void *tcbPtr; INT8 **tcbExtPtrPtr; INT32 *tidPtr;} CP_EXTEN;typedef struct { INT32 funcCode; INT32 errnoval;} CP_SETERR;typedef struct { INT32 funcCode; INT32 *errnoval;} CP_GETERR;typedef struct { INT32 funcCode; INT32 compNum; INT8 **compGdataPtr;} CP_DATA;typedef struct { INT32 funcCode; INT32 flags;} CP_PREEMPT;typedef struct { void *Qhead; void *Qtail;} RES_QUEUE; typedef struct { INT32 funcCode; RES_QUEUE *QheadPtr; INT32 timeout; INT32 flags;} CP_WAIT; typedef struct { INT32 funcCode; void *tcbPtr;} CP_WAKE;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -