patch-2.3.17 linux/include/asm-m68k/shm.h

Next file: linux/include/asm-m68k/shmparam.h
Previous file: linux/include/asm-m68k/setup.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.16/linux/include/asm-m68k/shm.h linux/include/asm-m68k/shm.h
@@ -12,8 +12,14 @@
    bit 31 (SHM_READ_ONLY) flag whether the page belongs to a read-only attach
 */
 /* on the m68k both bits 0 and 1 must be zero */
+/* format on the sun3 is similar, but bits 30, 31 are set to zero and all
+   others are reduced by 2. --m */
 
+#ifndef CONFIG_SUN3
 #define SHM_ID_SHIFT	9
+#else
+#define SHM_ID_SHIFT	7
+#endif
 #define _SHM_ID_BITS	7
 #define SHM_ID_MASK	((1<<_SHM_ID_BITS)-1)
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)