From c590f9fdf4d894904f1aaa2de40bb566e8cb1489 Mon Sep 17 00:00:00 2001 From: 10195501441 <10195501441@stu.ecnu.edu.com> Date: Thu, 18 Mar 2021 14:59:37 +0800 Subject: [PATCH] test mytop --- yeeshell.h | 4 ++++ 1 file changed, 4 insertions(+) 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;