proc_addr() returns address based on location in proc array
- pproc_addr is not neccessary to get the address of a process if we know its number - local proc variables in system calls implementation (sys_task) conflicts with the global proc array of all process, therefore the variable were renamed to proc_nr as they hold the process number
This commit is contained in:
@@ -24,12 +24,12 @@ register message *m_ptr; /* pointer to request message */
|
||||
register struct proc *rp;
|
||||
phys_bytes phys_name;
|
||||
char *np;
|
||||
int proc;
|
||||
int proc_nr;
|
||||
|
||||
if(!isokendpt(m_ptr->PR_ENDPT, &proc))
|
||||
if(!isokendpt(m_ptr->PR_ENDPT, &proc_nr))
|
||||
return EINVAL;
|
||||
|
||||
rp = proc_addr(proc);
|
||||
rp = proc_addr(proc_nr);
|
||||
|
||||
/* Save command name for debugging, ps(1) output, etc. */
|
||||
if(data_copy(who_e, (vir_bytes) m_ptr->PR_NAME_PTR,
|
||||
|
||||
Reference in New Issue
Block a user