Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1219421

Re: [PATCH] MIPS: UAPI: Fix unrecognized opcode WSBH/DSBH/DSHD when using MIPS16.

From Yousong Zhou <yszhou4tech@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] MIPS: UAPI: Fix unrecognized opcode WSBH/DSBH/DSHD when using MIPS16.
Date 2015-09-05 05:40 +0200
Message-ID <q5cuB-5mf-3@gated-at.bofh.it> (permalink)
References <q4ztf-8s6-3@gated-at.bofh.it> <q54no-286-17@gated-at.bofh.it> <q5cuB-5mf-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 5 September 2015 at 11:29, Yousong Zhou <yszhou4tech@gmail.com> wrote:
>     #include <stdio.h>
>     #include <stdint.h>
>

#include <asm/byteorder.h> was missed out at the top.

                yousong

>     uint16_t __attribute__((noinline)) f(uint16_t v)
>     {
>         v = __cpu_to_le16(v);
>         return v;
>     }
>
>     int main()
>     {
>         printf("%x\n", f(0xbeef));
>
>         return 0;
>     }
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] MIPS: UAPI: Fix unrecognized opcode WSBH/DSBH/DSHD when using MIPS16. Yousong Zhou <yszhou4tech@gmail.com> - 2015-09-03 12:00 +0200
  Re: [PATCH] MIPS: UAPI: Fix unrecognized opcode WSBH/DSBH/DSHD when  using MIPS16. "Maciej W. Rozycki" <macro@linux-mips.org> - 2015-09-04 21:00 +0200
    Re: [PATCH] MIPS: UAPI: Fix unrecognized opcode WSBH/DSBH/DSHD when  using MIPS16. Yousong Zhou <yszhou4tech@gmail.com> - 2015-09-05 05:40 +0200
      Re: [PATCH] MIPS: UAPI: Fix unrecognized opcode WSBH/DSBH/DSHD when  using MIPS16. Yousong Zhou <yszhou4tech@gmail.com> - 2015-09-05 05:40 +0200
      Re: [PATCH] MIPS: UAPI: Fix unrecognized opcode WSBH/DSBH/DSHD when  using MIPS16. "Maciej W. Rozycki" <macro@linux-mips.org> - 2015-09-05 16:30 +0200
        Re: [PATCH] MIPS: UAPI: Fix unrecognized opcode WSBH/DSBH/DSHD when  using MIPS16. Yousong Zhou <yszhou4tech@gmail.com> - 2015-09-06 04:50 +0200
          Re: [PATCH] MIPS: UAPI: Fix unrecognized opcode WSBH/DSBH/DSHD when  using MIPS16. "Maciej W. Rozycki" <macro@linux-mips.org> - 2015-09-07 01:30 +0200

csiph-web