Fixed 'ps' utility: now get process table addresses with getsysinfo() calls.

To be done: get copies of process tables instead of using /dev/(k)mem.
This commit is contained in:
Jorrit Herder
2005-06-06 13:51:50 +00:00
parent cde16504a1
commit 2f74381dcc
12 changed files with 97 additions and 40 deletions

View File

@@ -88,11 +88,6 @@ struct sigmsg {
#define MESS_SIZE (sizeof(message)) /* might need usizeof from fs here */
#define NIL_MESS ((message *) 0)
struct psinfo { /* information for the ps(1) program */
u16_t nr_tasks, nr_procs; /* NR_TASKS and NR_PROCS constants. */
vir_bytes proc, mproc, fproc; /* addresses of the main process tables. */
};
/* This is used to obtain system information through SYS_GETINFO. */
struct kinfo {
phys_bytes code_base; /* base of kernel code */