PROT_SEM in 2.5.7pre1 on Sparc question

Holzrichter, Bruce (bruce.holzrichter@monster.com)
Fri, 15 Mar 2002 13:36:47 -0500


Hello,

I am playing around with 2.5.7pre1 on Sparc64 platform. There's a new flag
definition in mman.h for PROT_SEM set to 0x8. Right now, the proper def is
not in the sparc tree, Dave may already have seen this, I diff'd the file
below, if your interested, that will allow the kernel compile to complete.

I see that this is related to the fast user space mutexes. I have been
reading up the LKML notes I have found on this, but I am wondering if there
are any implications on this for the Sparc architecture? I don't have a
working kernel yet for testing. But was wondering if you had any thoughts
on this.

Thanks
Bruce Holzrichter

-------------------------------------------------------------

--- include/asm-sparc64/mman.h.old Fri Mar 15 12:03:57 2002
+++ include/asm-sparc64/mman.h Fri Mar 15 12:05:07 2002
@@ -7,6 +7,7 @@
#define PROT_READ 0x1 /* page can be read */
#define PROT_WRITE 0x2 /* page can be written */
#define PROT_EXEC 0x4 /* page can be executed */
+#define PROT_SEM 0x8 /* page may be used for
atomic ops */
#define PROT_NONE 0x0 /* page can not be accessed */

#define MAP_SHARED 0x01 /* Share changes */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/