summaryrefslogtreecommitdiff
path: root/regress/usr.bin/wc
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2022-10-30 17:43:41 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2022-10-30 17:43:41 +0000
commit7fcf4a44c22344d228a55f6c66dbb6d37e637600 (patch)
tree65f839bf558694d11847f50dc841c622ec5d30e5 /regress/usr.bin/wc
parent3321c0c1f4711e353e9395028e6fd5d5739d39f2 (diff)
Simplfity setregs() by passing it the ps_strings and switching
sys_execve() to return EJUSTRETURN. setregs() is the MD routine used by sys_execve() to set up the thread's trapframe and PCB such that, on 'return' to userspace, it has the register values defined by the ABI and otherwise zero. It had to set the syscall retval[] values previously because the normal syscall return path overwrites a couple registers with the retval[] values. By instead returning EJUSTRETURN that and some complexity with program-counter handling on m88k and sparc64 goes away. Also, give setregs() add a 'struct ps_strings *arginfo' argument so powerpc, powerpc64, and sh can directly get argc/argv/envp values for registers instead of copyin()ing the one in userspace. Improvements from miod@ and millert@ Testing assistance miod@, kettenis@, and aoyama@ ok miod@ kettenis@
Diffstat (limited to 'regress/usr.bin/wc')
0 files changed, 0 insertions, 0 deletions