From 43651faf028032aa6f782e72272acf9fc80b3442 Mon Sep 17 00:00:00 2001 From: scottl Date: Thu, 16 Apr 2020 05:27:13 +0000 Subject: [PATCH] Fix ps_strings type change for i386 --- sys/i386/i386/machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 169aec1330c5..221b0f493e22 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -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.