patch-2.0.34 linux/include/asm-alpha/processor.h
Next file: linux/include/asm-alpha/ptrace.h
Previous file: linux/include/asm-alpha/pal.h
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Wed Jun 3 15:17:49 1998
- Orig file:
v2.0.33/linux/include/asm-alpha/processor.h
- Orig date:
Sun Aug 3 10:58:38 1997
diff -u --recursive --new-file v2.0.33/linux/include/asm-alpha/processor.h linux/include/asm-alpha/processor.h
@@ -8,9 +8,17 @@
#define __ASM_ALPHA_PROCESSOR_H
/*
- * We have a 41-bit user address space: 2TB user VM...
+ * We have a 41-bit user address space: 2TB user VM.
+ * Under certain circumstances (e.g. when emulating 32-bit code)
+ * we may want to voluntarily limit this...
*/
#define TASK_SIZE (0x40000000000UL)
+#define MAX_USER_ADDR ((current->personality&ADDR_MAX_32BIT) ? 0x100000000UL : \
+ ((current->personality & ADDR_MAX_31BIT) ? 0x80000000UL : \
+ 0x40000000000UL))
+#define MMAP_SEARCH_START ((current->personality & ADDR_MAX_31BIT) ? \
+ (MAX_USER_ADDR/2) : (MAX_USER_ADDR/3))
+
/*
* Bus types
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov