[b-free: 89] BTRON3と BTRON1 の比較表について

真鍋 裕一 (NBG02534@niftyserve.or.jp)
Sat, 14 Jan 1995 12:30:00 +0900

 現在作成中のBTRON3とBTRON1の比較表について、システムコール比較表/構造
体比較表/定数定義比較表の3種類のテキストを作成する予定です。
 以下に示す書式で作業を進めようと思っています。
テキスト完成後は、関連する情報で実身/仮身ネットワークを作成するつもりで
す。
 この書式で問題が無ければ、小池さんとも手分けして作業を進めたいと思いま
す。

真鍋 裕一

システムコール比較表(案)
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−

cre_prc(LINK* lnk, W pri, MESSAGE *msg);
引数 on BTRON1
LINK* lnk LINKPTR lnk
W pri WORD pri
MESSAGE *msg MESSAGE *msg

ext_prc(W exit_code);
引数 on BTRON1
W exit_code WORD exit_code

ter_prc(W pid, W abote_code, W opt);
引数 on BTRON1
W pid WORD pid
W abote_code WORD abote_code
W opt UWORD opt

chg_pri(W pid, W new_pri, W opt);
引数 on BTRON1
W pid WORD pid
W new_pri WORD new_pri
W opt UWORD opt

wai_prc(W time);
引数 on BTRON1
W time LONG time

prc_sts(W pid, P_STATE *buff, TC *path);
引数 on BTRON1
W pid WORD pid
P_STATE *buff P_STATE *buff (* 内部に一部違いあり *)

chg_usr(P_USER *buff);
引数 on BTRON1
P_USER *buff P_USER *buff

get_usr(W pid, P_USER *buff);
引数 on BTRON1
W pid WORD pid
P_USER *buff P_USER *buff

get_inf(W pid, P_INFO *buff);
引数 on BTRON1
W pid WORD pid
P_INFO *buff P_INFO *buff (* 内部に一部違いあり *)
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−

構造体比較表(案)
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−

typedef struct{ (on BTRIN1)
UW state; (UWORD state)
W priority; (WORD priority)
W parpid; (WORD parpid)
}P_STATE;

typedef struct{ (on BTRIN1)
TC usr_name[14]; ()
TC grp_name1[14]; ()
TC grp_name2[14]; ()
TC grp_name3[14]; ()
TC grp_name4[14]; ()
W level; (WORD level)
W net_level; (WORD net_level)
}P_USER;

typedef struct{ (on BTRIN1)
UW etime; (ULONG etime)
UW utime; (ULONG utime)
UW stime; (ULONG stime)
W tmem; (LONG tmem)
W wmem; (LONG wmem)
W revs[11]; (LONG reve[11])
}P_INFO

typedef struct{ (on BTRON1)
W msg_type; (WORD msg_type)
W msg_size; (WORD msg_size)
MSGBODY msg_body; (BYTE msg_body[n])
}MESSAGE;
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−

定数定義比較表(案)
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−

(on BTRON1)
ter_prc(,,opt)で使用する
#define TERM_NRM (0x0000)
#define TERM_ALL (0x0001)

chg_pri(,,opt)で使用する
#define P_ABS (0x0000)
#define P_REL (0x0001)

P_STATE.stateで使用する
#define P_LOCK BTRON1 ONLY (0x0001)
#define P_WAIT 0x00004000 (0x4000)
#define P_RUN 0x00008000 (0x8000)
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−