From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: [PATCH] powerpc{64}: fix MAP_NORESERVE and MAP_LOCKED in mman.h
Date: Sun, 10 Sep 2017 13:34:54 +0200 [thread overview]
Message-ID: <20170910113453.GX15263@port70.net> (raw)
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
reply other threads:[~2017-09-10 11:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170910113453.GX15263@port70.net \
--to=nsz@port70.net \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).