patch-2.1.132 linux/include/asm-arm/proc-armv/elf.h

Next file: linux/include/asm-arm/proc-armv/io.h
Previous file: linux/include/asm-arm/proc-armo/system.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.131/linux/include/asm-arm/proc-armv/elf.h linux/include/asm-arm/proc-armv/elf.h
@@ -0,0 +1,21 @@
+/*
+ * ELF definitions for 32-bit CPUs
+ */
+
+#define ELF_EXEC_PAGESIZE	4096
+
+/* We can execute both 32-bit and 26-bit code. */
+#define ELF_PROC_OK(x)		(1)
+
+#ifdef __KERNEL__
+
+#if 0		/* not yet */
+#define SET_PERSONALITY(ex,ibcs2) \
+	current_personality = (ex->e_flags & EF_ARM_APCS26) ? \
+	PER_LINUX : PER_LINUX_32BIT
+#else
+#define SET_PERSONALITY(ex,ibcs2) \
+	current->personality = PER_LINUX_32BIT
+#endif
+
+#endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov