Re: [PATCH] MIPS: UAPI: Fix unrecognized opcode WSBH/DSBH/DSHD when using MIPS16.
From: Yousong Zhou
Date: Fri Sep 04 2015 - 23:34:46 EST
On 5 September 2015 at 11:29, Yousong Zhou <yszhou4tech@xxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/