[PATCH] Factor uname-based native architecture detection into a common function.

Simon Horman horms at verge.net.au
Wed May 21 02:34:11 EDT 2008


On Thu, May 15, 2008 at 10:42:10PM -0700, Jamey Sharp wrote:
> This code was copy-pasted into every architecture and was basically
> identical.
> 
> Besides producing a nice net reduction in code, this factors a
> portability challenge into a single function that can be easily replaced
> at build-time.
> 
> Signed-off-by: Jamey Sharp <jamey at thetovacompany.com>
> ---
> This would allow arch_compat_trampoline to be simplified, since every
> architecture besides i386 has only "return 0;" in the function body now.
> 
> Note: I can't confirm that this works on any architecture but i386.

Hi Jamey,

I have been able to confirm that the code at least builds on every
architecture that kexec-tools supports. I have committed it to the tree
as a way of expsosing it to further testing.

Thanks

-- 
Horms




More information about the kexec mailing list