[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1485990732.2322.40.camel@HansenPartnership.com>
Date: Wed, 01 Feb 2017 15:12:12 -0800
From: James Bottomley <James.Bottomley@...senPartnership.com>
To: Andrew Morton <akpm@...ux-foundation.org>,
Helge Deller <deller@....de>
Cc: linux-kernel@...r.kernel.org, linux-parisc@...r.kernel.org,
Michael Kerrisk <mtk.manpages@...glemail.com>,
linux-api@...r.kernel.org
Subject: Re: [PATCH] prctl: implement PR_GET_ENDIAN for all architectures
On Tue, 2017-01-31 at 16:26 -0800, Andrew Morton wrote:
> On Sat, 28 Jan 2017 12:13:10 +0100 Helge Deller <deller@....de>
> wrote:
>
> > The prctl(PR_GET_ENDIAN) syscall was added to Kernel 2.6.18, but
> > implemented for PowerPC only. This trivial patch adds support for
> > this syscall for all other architectures.
>
> Seems reasonable. I guess. Why is this needed?
I don't think it is other than for PPC. If you're not variable endian
(which is only PPC to date), then you should know a priori what endian
you are from the #defines in userspace.
James
Powered by blists - more mailing lists