diff options
Diffstat (limited to 'proc')
-rw-r--r-- | proc/mgt.c | 18 | ||||
-rw-r--r-- | proc/proc.h | 1 |
2 files changed, 19 insertions, 0 deletions
@@ -348,6 +348,24 @@ S_proc_get_arg_locations (struct proc *p, return 0; } +/* Implement proc_set_entry as described in <hurd/process.defs>. */ +kern_return_t +S_proc_set_entry (struct proc *p, vm_address_t entry) +{ + if (!p) + return EOPNOTSUPP; + p->p_entry = entry; + return 0; +} + +/* Implement proc_get_entry as described in <hurd/process.defs>. */ +kern_return_t +S_proc_get_entry (struct proc *p, vm_address_t *entry) +{ + *entry = p->p_entry; + return 0; +} + /* Implement proc_dostop as described in <hurd/process.defs>. */ kern_return_t S_proc_dostop (struct proc *p, diff --git a/proc/proc.h b/proc/proc.h index 333e8840..b33845d9 100644 --- a/proc/proc.h +++ b/proc/proc.h @@ -71,6 +71,7 @@ struct proc vm_address_t p_argv, p_envp; vm_address_t start_code; /* all executable segments are in this range */ vm_address_t end_code; + vm_address_t p_entry; /* executable entry */ int p_status; /* to return via wait */ int p_sigcode; struct rusage p_rusage; /* my usage if I'm dead, to return via wait */ |