Added spare space on the usr stack. Used in ibcs2 emulation.
This commit is contained in:
parent
c96f129304
commit
5dfe901236
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3477
@ -528,8 +528,8 @@ kvm_doargv(kd, kp, nchr, info)
|
||||
* Pointers are stored at the top of the user stack.
|
||||
*/
|
||||
if (p->p_stat == SZOMB ||
|
||||
kvm_uread(kd, p, USRSTACK - sizeof(arginfo), (char *)&arginfo,
|
||||
sizeof(arginfo)) != sizeof(arginfo))
|
||||
kvm_uread(kd, p, USRSTACK - sizeof(arginfo) - SPARE_USRSPACE,
|
||||
(char *)&arginfo, sizeof(arginfo)) != sizeof(arginfo))
|
||||
return (0);
|
||||
|
||||
(*info)(&arginfo, &addr, &cnt);
|
||||
|
Loading…
Reference in New Issue
Block a user