Fix ps_strings type change for i386

This commit is contained in:
scottl 2020-04-16 05:27:13 +00:00
parent c9f89bb313
commit 43651faf02

View File

@ -1171,7 +1171,7 @@ exec_setregs(struct thread *td, struct image_params *imgp, uintptr_t stack)
regs->tf_cs = _ucodesel;
/* PS_STRINGS value for BSD/OS binaries. It is 0 for non-BSD/OS. */
regs->tf_ebx = imgp->ps_strings;
regs->tf_ebx = (register_t)imgp->ps_strings;
/*
* Reset the hardware debug registers if they were in use.