[PATCH 1/2] powerpc: Add a proper syscall for switching endianness

Michael Ellerman mpe at ellerman.id.au
Fri Mar 13 17:38:46 AEDT 2015


On Fri, 2015-03-13 at 15:39 +1100, Michael Ellerman wrote:
> We currently have a "special" syscall for switching endianness. This is
> syscall number 0x1ebe, which is handled explicitly in the 64-bit syscall
> exception entry.
> 
> diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h
> index 91062eef582f..c3ee21a1d9cf 100644
> --- a/arch/powerpc/include/asm/systbl.h
> +++ b/arch/powerpc/include/asm/systbl.h
> @@ -367,3 +367,4 @@ SYSCALL_SPU(getrandom)
>  SYSCALL_SPU(memfd_create)
>  SYSCALL_SPU(bpf)
>  COMPAT_SYS(execveat)
> +PPC_SYS(switch_endian)

And of course I forgot about 32-bit.

According to Paul there are no working implementations of LE on 32-bit cpus, so
the syscall doesn't really make sense there.

Scott does that sound right to you for FSL stuff?

cheers




More information about the Linuxppc-dev mailing list