On Thursday, August 21, 2014 11:22:27 AM Marcin Juszkiewicz wrote:
> >From b4c271939c4ddab5b80f691f381608622c372344 Mon Sep 17 00:00:00 2001
> 
> From: Marcin Juszkiewicz <mjuszkiew...@redhat.com>
> Date: Thu, 21 Aug 2014 11:15:43 +0200
> Subject: [PATCH] Handle MIPS code only on MIPS platforms
> 
> MIPS stuff needs to be handled on MIPS platforms otherwise no new
> architectures can be added after MIPS block.

Thanks, applied.

> ---
>  src/arch.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/src/arch.c b/src/arch.c
> index 1e61db3..c65497b 100644
> --- a/src/arch.c
> +++ b/src/arch.c
> @@ -50,19 +50,19 @@ const struct arch_def *arch_def_native =
> &arch_def_x86_64; #endif /* __ILP32__ */
>  #elif __arm__
>  const struct arch_def *arch_def_native = &arch_def_arm;
> -#elif _MIPS_SIM == _MIPS_SIM_ABI32
> +#elif __mips__ && _MIPS_SIM == _MIPS_SIM_ABI32
>  #if __MIPSEB__
>  const struct arch_def *arch_def_native = &arch_def_mips;
>  #elif __MIPSEL__
>  const struct arch_def *arch_def_native = &arch_def_mipsel;
>  #endif /* _MIPS_SIM_ABI32 */
> -#elif _MIPS_SIM == _MIPS_SIM_ABI64
> +#elif __mips__ && _MIPS_SIM == _MIPS_SIM_ABI64
>  #if __MIPSEB__
>  const struct arch_def *arch_def_native = &arch_def_mips64;
>  #elif __MIPSEL__
>  const struct arch_def *arch_def_native = &arch_def_mipsel64;
>  #endif /* _MIPS_SIM_ABI64 */
> -#elif _MIPS_SIM == _MIPS_SIM_NABI32
> +#elif __mips__ && _MIPS_SIM == _MIPS_SIM_NABI32
>  #if __MIPSEB__
>  const struct arch_def *arch_def_native = &arch_def_mips64n32;
>  #elif __MIPSEL__

-- 
paul moore
security and virtualization @ redhat


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
libseccomp-discuss mailing list
libseccomp-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libseccomp-discuss

Reply via email to