From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11923 Path: news.gmane.org!.POSTED!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH] powerpc{64}: fix MAP_NORESERVE and MAP_LOCKED in mman.h Date: Sun, 10 Sep 2017 13:34:54 +0200 Message-ID: <20170910113453.GX15263@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1505317953 21043 195.159.176.226 (13 Sep 2017 15:52:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Sep 2017 15:52:33 +0000 (UTC) User-Agent: Mutt/1.6.0 (2016-04-01) To: musl@lists.openwall.com Original-X-From: musl-return-11931-gllmg-musl=m.gmane.org@lists.openwall.com Sun Sep 10 13:35:05 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1dr0W0-00088M-NU for gllmg-musl@m.gmane.org; Sun, 10 Sep 2017 13:35:04 +0200 Original-Received: (qmail 10015 invoked by uid 550); 10 Sep 2017 11:35:07 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 9978 invoked from network); 10 Sep 2017 11:35:06 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline Xref: news.gmane.org gmane.linux.lib.musl.general:11923 MAP_{NORESERVE,LOCKED} have different values on powerpc than in generic. --- arch/powerpc/bits/mman.h | 7 ++++++- arch/powerpc64/bits/mman.h | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/bits/mman.h b/arch/powerpc/bits/mman.h index b6a15a12..95ec4358 100644 --- a/arch/powerpc/bits/mman.h +++ b/arch/powerpc/bits/mman.h @@ -1,4 +1,9 @@ -#define PROT_SAO 0x10 +#define PROT_SAO 0x10 + +#undef MAP_NORESERVE +#define MAP_NORESERVE 0x40 +#undef MAP_LOCKED +#define MAP_LOCKED 0x80 #undef MCL_CURRENT #define MCL_CURRENT 0x2000 diff --git a/arch/powerpc64/bits/mman.h b/arch/powerpc64/bits/mman.h index f5974f82..95ec4358 100644 --- a/arch/powerpc64/bits/mman.h +++ b/arch/powerpc64/bits/mman.h @@ -1,5 +1,10 @@ #define PROT_SAO 0x10 +#undef MAP_NORESERVE +#define MAP_NORESERVE 0x40 +#undef MAP_LOCKED +#define MAP_LOCKED 0x80 + #undef MCL_CURRENT #define MCL_CURRENT 0x2000 #undef MCL_FUTURE -- 2.14.1