projects
/
linux-flexiantxendom0-3.2.10.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update ia64 patch to 2.5.72-030619
[linux-flexiantxendom0-3.2.10.git]
/
include
/
asm-ia64
/
compat.h
diff --git
a/include/asm-ia64/compat.h
b/include/asm-ia64/compat.h
index
9473a87
..
83e8115
100644
(file)
--- a/
include/asm-ia64/compat.h
+++ b/
include/asm-ia64/compat.h
@@
-128,4
+128,11
@@
compat_ptr (compat_uptr_t uptr)
return (void *) (unsigned long) uptr;
}
+static __inline__ void *
+compat_alloc_user_space (long len)
+{
+ struct pt_regs *regs = ia64_task_regs(current);
+ return (void *) ((regs->r12 & -16) - len);
+}
+
#endif /* _ASM_IA64_COMPAT_H */