[PATCH] Fix hw/xfree86/common/compiler.h for mips64

Yunqiang Su wzssyqa at gmail.com
Wed Apr 9 03:34:28 PDT 2014


Ping.
Any progress of this patch?

I just test it with  1.15.0.901. It works well.

On Sat, Oct 12, 2013 at 1:22 PM, YunQiang Su <wzssyqa at gmail.com> wrote:
> Mark mips64 as 64bit
> Use long as PORT_SIZE
>
> Signed-off-by: YunQiang Su <wzssyqa at gmail.com>
> ---
>  hw/xfree86/common/compiler.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h
> index c980bee..4a67894 100644
> --- a/hw/xfree86/common/compiler.h
> +++ b/hw/xfree86/common/compiler.h
> @@ -103,6 +103,7 @@
>  #if !defined(__sparc__) && !defined(__sparc) && !defined(__arm32__) && !defined(__nds32__) \
>        && !(defined(__alpha__) && defined(linux)) \
>        && !(defined(__ia64__) && defined(linux)) \
> +      && !(defined(__mips64) && defined(linux)) \
>
>  extern _X_EXPORT void outb(unsigned short, unsigned char);
>  extern _X_EXPORT void outw(unsigned short, unsigned short);
> @@ -721,7 +722,7 @@ xf86WriteMmio32LeNB(__volatile__ void *base, const unsigned long offset,
>  }
>
>  #elif defined(__mips__) || (defined(__arm32__) && !defined(__linux__))
> -#ifdef __arm32__
> +#if defined(__arm32__) || defined(__mips64)
>  #define PORT_SIZE long
>  #else
>  #define PORT_SIZE short
> --
> 1.8.4.rc3
>



-- 
Yunqiang Su


More information about the xorg-devel mailing list