This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH][BZ #6791] Add PROT_SAO to powerpc/bits/mman.h for StrongAccess Ordering
- From: Pete Eberlein <eberlein at linux dot vnet dot ibm dot com>
- To: libc-alpha at sourceware dot org
- Cc: Dave Kleikamp <shaggy at us dot ibm dot com>, Benjamin Herrenschmidt <benh at kernel dot crashing dot org>
- Date: Thu, 31 Jul 2008 15:52:28 -0700
- Subject: [PATCH][BZ #6791] Add PROT_SAO to powerpc/bits/mman.h for StrongAccess Ordering
Hello.
I recently filed a bugzilla enhancement request:
http://sourceware.org/bugzilla/show_bug.cgi?id=6791
The attached patch defines the PROT_SAO bitmask in powerpc/bits/mman.h
to match a recent Linux kernel header change that also added PROT_SAO
for powerpc. The define is used with mmap and mprotect to allow Strong
Access Ordering.
Pete Eberlein
IBM Linux Technology Center
Linux Toolchain Development
2008-07-30 Pete Eberlein <eberlein@us.ibm.com>
[BZ #6791]
* sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO):
Added define for Strong Access Ordering.
Index: sysdeps/unix/sysv/linux/powerpc/bits/mman.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/powerpc/bits/mman.h,v
retrieving revision 1.14
diff -a -u -r1.14 mman.h
--- sysdeps/unix/sysv/linux/powerpc/bits/mman.h 2 May 2006 14:33:44 -0000 1.14
+++ sysdeps/unix/sysv/linux/powerpc/bits/mman.h 30 Jul 2008 22:49:35 -0000
@@ -38,6 +38,7 @@
growsdown vma (mprotect only). */
#define PROT_GROWSUP 0x02000000 /* Extend change to start of
growsup vma (mprotect only). */
+#define PROT_SAO 0x10 /* Strong Access Ordering */
/* Sharing types (must choose one and only one of these). */
#define MAP_SHARED 0x001 /* Share changes. */