Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Mar 2010 16:38:01 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        Nathan Whitehorn <nwhitehorn@freebsd.org>
Subject:   Re: Review/testing request: changing the arguments of exec_setregs()
Message-ID:  <201003241638.01330.jhb@freebsd.org>
In-Reply-To: <4BAA658B.6080509@freebsd.org>
References:  <4BAA658B.6080509@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 24 March 2010 3:18:35 pm Nathan Whitehorn wrote:
> In order to properly implement exec_setregs() on powerpc64, I must 
> hand-relocate the function descriptor pointed to by the executable entry 
> point. To do this, exec_setregs() must be passed the relocation base of 
> the executable, which would originally come from the image_params struct.
> 
> The patch at http://people.freebsd.org/~nwhitehorn/exec_setregs.diff 
> changes the arguments of exec_setregs to take a pointer to the image's 
> image_params struct to allow easy future expansion, and removes 
> redundant arguments (entry and ps_strings). This is similar to the 
> calling convention in NetBSD. I also take the opportunity to convert 
> several of the declarations of exec_setregs() from K&R to ANSI C.
> 
> This patch is fairly straightforward, but it does touch all 
> architectures. I have tested the patch on amd64, sparc64, and powerpc, 
> with no evident problems.

Looks fine to me, I say go for it.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003241638.01330.jhb>