+ add-prctl-to-change-endian-of-a-task.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     Add prctl to change endian of a task

has been added to the -mm tree.  Its filename is

     add-prctl-to-change-endian-of-a-task.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Add prctl to change endian of a task
From: Anton Blanchard <anton@xxxxxxxxx>


Add a prctl to change a tasks endian.  While we only have powerpc code to
implement this so far, it seems like something that warrants a generic
interface (like setting floating point mode bits).

Signed-off-by: Anton Blanchard <anton@xxxxxxxxx>
Cc: Michael Kerrisk <mtk-manpages@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 include/linux/prctl.h |    7 +++++++
 kernel/sys.c          |   13 +++++++++++++
 2 files changed, 20 insertions(+)

diff -puN include/linux/prctl.h~add-prctl-to-change-endian-of-a-task include/linux/prctl.h
--- devel/include/linux/prctl.h~add-prctl-to-change-endian-of-a-task	2006-06-06 23:21:40.000000000 -0700
+++ devel-akpm/include/linux/prctl.h	2006-06-06 23:21:40.000000000 -0700
@@ -52,4 +52,11 @@
 #define PR_SET_NAME    15		/* Set process name */
 #define PR_GET_NAME    16		/* Get process name */
 
+/* Get/set process endian */
+#define PR_GET_ENDIAN	19
+#define PR_SET_ENDIAN	20
+# define PR_ENDIAN_BIG		0
+# define PR_ENDIAN_LITTLE	1	/* True little endian mode */
+# define PR_ENDIAN_PPC_LITTLE	2	/* "PowerPC" pseudo little endian */
+
 #endif /* _LINUX_PRCTL_H */
diff -puN kernel/sys.c~add-prctl-to-change-endian-of-a-task kernel/sys.c
--- devel/kernel/sys.c~add-prctl-to-change-endian-of-a-task	2006-06-06 23:21:40.000000000 -0700
+++ devel-akpm/kernel/sys.c	2006-06-06 23:21:40.000000000 -0700
@@ -57,6 +57,12 @@
 #ifndef GET_FPEXC_CTL
 # define GET_FPEXC_CTL(a,b)	(-EINVAL)
 #endif
+#ifndef GET_ENDIAN
+# define GET_ENDIAN(a,b)	(-EINVAL)
+#endif
+#ifndef SET_ENDIAN
+# define SET_ENDIAN(a,b)	(-EINVAL)
+#endif
 
 /*
  * this is where the system-wide overflow UID and GID are defined, for
@@ -2045,6 +2051,13 @@ asmlinkage long sys_prctl(int option, un
 				return -EFAULT;
 			return 0;
 		}
+		case PR_GET_ENDIAN:
+			error = GET_ENDIAN(current, arg2);
+			break;
+		case PR_SET_ENDIAN:
+			error = SET_ENDIAN(current, arg2);
+			break;
+
 		default:
 			error = -EINVAL;
 			break;
_

Patches currently in -mm which might be from anton@xxxxxxxxx are

git-powerpc.patch
fix-pciehp-driver-on-non-acpi-systems.patch
add-prctl-to-change-endian-of-a-task.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux