diff --git a/yeeshell.h b/yeeshell.h index 698baec..a5907d6 100644 --- a/yeeshell.h +++ b/yeeshell.h @@ -41,6 +41,10 @@ const char *cputimenames[] = {"user", "ipc", "kernelcall"}; #define TC_BUFFER 1024 #define TC_STRINGS 200 +#define _ENDPOINT_P(e) ((((e) + 1023) % (1023 + ((endpoint_t)0x8ace) + 1)) - 1023) +unsigned int nr_procs, nr_tasks; +#define SLOT_NR(e) (_ENDPOINT_P(e) + nr_tasks) + struct proc { int p_flags;