Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/exec.h
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
* Address of ps_strings structure (in user space). | * Address of ps_strings structure (in user space). | ||||
* Prefer the kern.ps_strings or kern.proc.ps_strings sysctls to this constant. | * Prefer the kern.ps_strings or kern.proc.ps_strings sysctls to this constant. | ||||
*/ | */ | ||||
#define PS_STRINGS (USRSTACK - sizeof(struct ps_strings)) | #define PS_STRINGS (USRSTACK - sizeof(struct ps_strings)) | ||||
#define PROC_PS_STRINGS(p) \ | #define PROC_PS_STRINGS(p) \ | ||||
((p)->p_vmspace->vm_stacktop - (p)->p_sysent->sv_psstringssz) | ((p)->p_vmspace->vm_stacktop - (p)->p_sysent->sv_psstringssz) | ||||
/* | /* | ||||
* Address of signal trampoline (in user space). | * Address of signal trampoline (in user space). | ||||
* This assumes that the sigcode resides in the shared page, which is true | * This assumes that the sigcode resides in the shared page. | ||||
kib: I would remove mention of a.out from the comment, not trying to enumerate all cases where… | |||||
* in all cases, except for a.out binaries. | |||||
*/ | */ | ||||
#define PROC_SIGCODE(p) \ | #define PROC_SIGCODE(p) \ | ||||
((p)->p_sysent->sv_sigcode_base) | ((p)->p_vmspace->vm_shp_base + (p)->p_sysent->sv_sigcode_offset) | ||||
#define PROC_HAS_SHP(p) \ | |||||
((p)->p_sysent->sv_shared_page_obj != NULL) | |||||
int exec_map_first_page(struct image_params *); | int exec_map_first_page(struct image_params *); | ||||
void exec_unmap_first_page(struct image_params *); | void exec_unmap_first_page(struct image_params *); | ||||
int exec_register(const struct execsw *); | int exec_register(const struct execsw *); | ||||
int exec_unregister(const struct execsw *); | int exec_unregister(const struct execsw *); | ||||
enum uio_seg; | enum uio_seg; | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |
I would remove mention of a.out from the comment, not trying to enumerate all cases where shared page is present or not.