2005-05-03 17:35:52 +02:00
|
|
|
/* The following names are synonyms for the variables in the input message. */
|
|
|
|
#define addr m1_p1
|
|
|
|
#define exec_name m1_p1
|
|
|
|
#define exec_len m1_i1
|
|
|
|
#define func m6_f1
|
|
|
|
#define grp_id m1_i1
|
2005-08-02 17:29:17 +02:00
|
|
|
#define namelen m1_i2
|
2005-05-03 17:35:52 +02:00
|
|
|
#define pid m1_i1
|
endpoint-aware conversion of servers.
'who', indicating caller number in pm and fs and some other servers, has
been removed in favour of 'who_e' (endpoint) and 'who_p' (proc nr.).
In both PM and FS, isokendpt() convert endpoints to process slot
numbers, returning OK if it was a valid and consistent endpoint number.
okendpt() does the same but panic()s if it doesn't succeed. (In PM,
this is pm_isok..)
pm and fs keep their own records of process endpoints in their proc tables,
which are needed to make kernel calls about those processes.
message field names have changed.
fs drivers are endpoints.
fs now doesn't try to get out of driver deadlock, as the protocol isn't
supposed to let that happen any more. (A warning is printed if ELOCKED
is detected though.)
fproc[].fp_task (indicating which driver the process is suspended on)
became an int.
PM and FS now get endpoint numbers of initial boot processes from the
kernel. These happen to be the same as the old proc numbers, to let
user processes reach them with the old numbers, but FS and PM don't know
that. All new processes after INIT, even after the generation number
wraps around, get endpoint numbers with generation 1 and higher, so
the first instances of the boot processes are the only processes ever
to have endpoint numbers in the old proc number range.
More return code checks of sys_* functions have been added.
IS has become endpoint-aware. Ditched the 'text' and 'data' fields
in the kernel dump (which show locations, not sizes, so aren't terribly
useful) in favour of the endpoint number. Proc number is still visible.
Some other dumps (e.g. dmap, rs) show endpoint numbers now too which got
the formatting changed.
PM reading segments using rw_seg() has changed - it uses other fields
in the message now instead of encoding the segment and process number and
fd in the fd field. For that it uses _read_pm() and _write_pm() which to
_taskcall()s directly in pm/misc.c.
PM now sys_exit()s itself on panic(), instead of sys_abort().
RS also talks in endpoints instead of process numbers.
2006-03-03 11:20:58 +01:00
|
|
|
#define endpt m1_i1
|
|
|
|
#define pendpt m1_i2
|
2005-05-03 17:35:52 +02:00
|
|
|
#define seconds m1_i1
|
|
|
|
#define sig m6_i1
|
|
|
|
#define stack_bytes m1_i2
|
|
|
|
#define stack_ptr m1_p2
|
|
|
|
#define status m1_i1
|
|
|
|
#define usr_id m1_i1
|
|
|
|
#define request m2_i2
|
|
|
|
#define taddr m2_l1
|
|
|
|
#define data m2_l2
|
|
|
|
#define sig_nr m1_i2
|
|
|
|
#define sig_nsa m1_p1
|
|
|
|
#define sig_osa m1_p2
|
|
|
|
#define sig_ret m1_p3
|
2006-03-10 17:10:05 +01:00
|
|
|
#define stat_nr m2_i1
|
2005-05-03 17:35:52 +02:00
|
|
|
#define sig_set m2_l1
|
|
|
|
#define sig_how m2_i1
|
|
|
|
#define sig_flags m2_i2
|
|
|
|
#define sig_context m2_p1
|
|
|
|
#ifdef _SIGMESSAGE
|
|
|
|
#define sig_msg m1_i1
|
|
|
|
#endif
|
2005-06-06 15:51:50 +02:00
|
|
|
#define info_what m1_i1
|
|
|
|
#define info_where m1_p1
|
2005-05-03 17:35:52 +02:00
|
|
|
#define reboot_flag m1_i1
|
|
|
|
#define reboot_code m1_p1
|
2005-06-24 18:21:21 +02:00
|
|
|
#define reboot_strlen m1_i2
|
2005-05-03 17:35:52 +02:00
|
|
|
#define svrctl_req m2_i1
|
|
|
|
#define svrctl_argp m2_p1
|
2005-05-31 11:50:51 +02:00
|
|
|
#define stime m2_l1
|
2005-06-02 14:43:21 +02:00
|
|
|
#define memsize m4_l1
|
|
|
|
#define membase m4_l2
|
2006-05-19 14:19:37 +02:00
|
|
|
#define sysuname_req m1_i1
|
|
|
|
#define sysuname_field m1_i2
|
|
|
|
#define sysuname_len m1_i3
|
|
|
|
#define sysuname_value m1_p1
|
2005-05-03 17:35:52 +02:00
|
|
|
|
|
|
|
/* The following names are synonyms for the variables in a reply message. */
|
|
|
|
#define reply_res m_type
|
|
|
|
#define reply_res2 m2_i1
|
2005-10-12 17:07:38 +02:00
|
|
|
#define reply_res3 m2_i2
|
2005-05-03 17:35:52 +02:00
|
|
|
#define reply_ptr m2_p1
|
|
|
|
#define reply_mask m2_l1
|
|
|
|
#define reply_trace m2_l2
|
2005-05-31 11:50:51 +02:00
|
|
|
#define reply_time m2_l1
|
2005-08-05 14:44:06 +02:00
|
|
|
#define reply_utime m2_l2
|
2005-05-31 11:50:51 +02:00
|
|
|
#define reply_t1 m4_l1
|
|
|
|
#define reply_t2 m4_l2
|
|
|
|
#define reply_t3 m4_l3
|
|
|
|
#define reply_t4 m4_l4
|
|
|
|
#define reply_t5 m4_l5
|
2005-05-03 17:35:52 +02:00
|
|
|
|
|
|
|
/* The following names are used to inform the FS about certain events. */
|
|
|
|
#define tell_fs_arg1 m1_i1
|
|
|
|
#define tell_fs_arg2 m1_i2
|
|
|
|
#define tell_fs_arg3 m1_i3
|
|
|
|
|