2002-03-15 18:37:30

by Holzrichter, Bruce

[permalink] [raw]
Subject: PROT_SEM in 2.5.7pre1 on Sparc question

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 */


2002-03-15 19:53:48

by David Miller

[permalink] [raw]
Subject: Re: PROT_SEM in 2.5.7pre1 on Sparc question


It's defined in the bitkeeper 2.5.x tree already.